Static utility functions for the multipart reader.
More...
|
static | extractBoundary ( $contentType) |
| Extract the boundary from a Content-Type string.
|
|
static | decodeParameters ( $input) |
| Decode semicolon-separated parameters into an associative array.
|
|
static | decodeTokenOrQuotedString ( $input) |
| Parse the "value" production from RFC 1341, which is either an unquoted "token" or a quoted string with peculiar backslash escaping.
|
|
Static utility functions for the multipart reader.
◆ decodeParameters()
static Shellbox\Multipart\MultipartUtils::decodeParameters |
( |
| $input | ) |
|
|
static |
Decode semicolon-separated parameters into an associative array.
The values may be quoted or unquoted. We try to follow the "parameter" production in RFC 1341.
- Parameters
-
- Returns
- array
- Exceptions
-
◆ decodeTokenOrQuotedString()
static Shellbox\Multipart\MultipartUtils::decodeTokenOrQuotedString |
( |
| $input | ) |
|
|
static |
Parse the "value" production from RFC 1341, which is either an unquoted "token" or a quoted string with peculiar backslash escaping.
- Parameters
-
- Returns
- string
- Exceptions
-
◆ extractBoundary()
static Shellbox\Multipart\MultipartUtils::extractBoundary |
( |
| $contentType | ) |
|
|
static |
Extract the boundary from a Content-Type string.
If the Content-Type is not multipart, returns false.
This can be used to get a boundary when constructing a MultipartReader from a request.
- Parameters
-
- Returns
- bool|string
The documentation for this class was generated from the following file:
- src/Multipart/MultipartUtils.php