You are here

public function ServerRequestInterface::getParsedBody in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/psr/http-message/src/ServerRequestInterface.php \Psr\Http\Message\ServerRequestInterface::getParsedBody()

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; as parsing returns structured content, the potential types MUST be arrays or objects only. A null value indicates the absence of body content.

Return value

null|array|object The deserialized body parameters, if any. These will typically be an array or object.

2 methods override ServerRequestInterface::getParsedBody()
ServerRequest::getParsedBody in vendor/zendframework/zend-diactoros/src/ServerRequest.php
Retrieve any parameters provided in the request body.
ServerRequest::getParsedBody in vendor/symfony/psr-http-message-bridge/Tests/Fixtures/ServerRequest.php
Retrieve any parameters provided in the request body.

File

vendor/psr/http-message/src/ServerRequestInterface.php, line 167

Class

ServerRequestInterface
Representation of an incoming, server-side HTTP request.

Namespace

Psr\Http\Message

Code

public function getParsedBody();