$request
$request : \Psr\Http\Message\RequestInterface
This is a plugin used to parse data transported by the HTTP request.
$application : \Gishiki\Core\Application|null
__construct(\Psr\Http\Message\RequestInterface $request, \Psr\Http\Message\ResponseInterface $response, \Gishiki\Core\Application|null $app = null)
Deserializer constructor: setup the middleware importing deserializers
Warning: you should never attempt to use another construction in your plugin, unless it calls parent::__construct()
\Psr\Http\Message\RequestInterface | $request | the HTTP request |
\Psr\Http\Message\ResponseInterface | $response | the HTTP response |
\Gishiki\Core\Application|null | $app | the current application instance |
getRequestDeserialized() : \Gishiki\Algorithms\Collections\SerializableCollection
Retrieve any parameters provided in the request body.
If the request Content-Type is either application/x-www-form-urlencoded or multipart/form-data, and the request method is POST, this method MUST return the contents of $_POST.
Otherwise, this method may return any results of deserializing the request body content.
if the request body is invalid
The deserialized body parameters, if any. These will typically be an array or object