You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`getContents(MessageInterface $message)`|`string`| Reads the body content of a `MessageInterface` and makes sure to rewind. |
72
-
|`decodeJSON(MessageInterface $message, bool $assoc = null)`| mixed | fetches the body of a `MessageInterface` and converts it to a JSON object (`stdClass`) or an associative array if `$assoc` is set to `true` and returns the result. |
73
-
|`decodeXML(MessageInterface $message, bool $assoc = null)`| mixed | fetches the body of a `MessageInterface` and converts it to a `SimpleXMLElement` or an associative array if `$assoc` is set to `true` and returns the result. |
74
-
|`toString(MessageInterface $message)`|`string`| Returns the string representation of an HTTP message. |
75
-
|`decompress(MessageInterface $message)`|`string`| Decompresses the message content according to the `Content-Encoding` header (`compress`, `deflate`, `gzip`, `br`, `zstd`) and returns the decompressed data. `br` and `zstd` will throw a `RuntimeException` if the respecive extensions are missing. |
76
-
|`setContentLengthHeader(MessageInterface $message)`|`MessageInterface`| Sets a Content-Length header in the given message in case it does not exist and body size is not null |
77
-
|`setContentTypeHeader(MessageInterface $message, string $filename = null, string $extension = null)`|`MessageInterface`| Tries to determine the content type from the given values and sets the Content-Type header accordingly, throws if no mime type could be guessed. |
|`getContents(MessageInterface $message)`|`string`| Reads the body content of a `MessageInterface` and makes sure to rewind. |
72
+
|`decodeJSON(MessageInterface $message, bool $assoc = null)`| mixed | fetches the body of a `MessageInterface` and converts it to a JSON object (`stdClass`) or an associative array if `$assoc` is set to `true` and returns the result. |
73
+
|`decodeXML(MessageInterface $message, bool $assoc = null)`| mixed | fetches the body of a `MessageInterface` and converts it to a `SimpleXMLElement` or an associative array if `$assoc` is set to `true` and returns the result. |
74
+
|`toString(MessageInterface $message)`|`string`| Returns the string representation of an HTTP message. |
75
+
|`decompress(MessageInterface $message)`|`string`| Decompresses the message content according to the `Content-Encoding` header (`compress`, `deflate`, `gzip`, `br`, `zstd`) and returns the decompressed data. `br` and `zstd` will throw a `RuntimeException` if the respecive extensions are missing. |
76
+
|`setContentLengthHeader(MessageInterface $message)`|`MessageInterface`| Sets a Content-Length header in the given message in case it does not exist and body size is not null |
77
+
|`setContentTypeHeader(MessageInterface $message, string $filename = null, string $extension = null)`|`MessageInterface`| Tries to determine the content type from the given values and sets the Content-Type header accordingly, throws if no mime type could be guessed. |
|`getCookiesFromHeader(MessageInterface $message)`|`array\|null`| Attempts to extract and parse a cookie from a "Cookie" (user-agent) header |
78
80
79
81
### `UriUtil`
80
82
| method | return | info |
@@ -120,3 +122,18 @@ It provides convenience methods to create server requests, URIs and uploaded fil
120
122
|`normalizeFiles(array $files)`|`UploadedFileInterface[]`| Returns an `UploadedFile` instance array. |
121
123
|`createUploadedFileFromSpec(array $value)`|`UploadedFileInterface` or `UploadedFileInterface[]`| Creates an UploadedFile instance from a `$_FILES` specification. If the specification represents an array of values, this method will delegate to `normalizeNestedFileSpec()` and return that return value. |
122
124
|`normalizeNestedFileSpec(array $files):array`|`array`| Normalizes an array of file specifications. Loops through all nested files and returns a normalized array of `UploadedFileInterface` instances. |
125
+
126
+
### `Cookie`
127
+
Implements a [HTTP cookie](https://datatracker.ietf.org/doc/html/rfc6265#section-4.1)
0 commit comments