toArray()
toArray(\Psr\Http\Message\ResponseInterface $response) : array
Serialize a response message to an array.
Parameters
\Psr\Http\Message\ResponseInterface | $response |
Serialize or deserialize response messages to/from arrays.
This class provides functionality for serializing a ResponseInterface instance to an array, as well as the reverse operation of creating a Response instance from an array representing a message.
toArray(\Psr\Http\Message\ResponseInterface $response) : array
Serialize a response message to an array.
\Psr\Http\Message\ResponseInterface | $response |
fromArray(array $serializedResponse) : \Zend\Diactoros\Response
Deserialize a response array to a response instance.
array | $serializedResponse |
when cannot deserialize response
Loading…