Edit
↰
Home
↑
http
↑
Env
↻
Env::getRequestBody
↲
★ Changelog
↲
Request
↲
Response
↲
Url
↲
Env::getRequestHeader
↲
Env::getResponseCode
↲
Env::getResponseHeader
↲
Env::getResponseStatusForAllCodes
↲
Env::getResponseStatusForCode
↲
Env::negotiate
↲
Env::negotiateCharset
↲
Env::negotiateContentType
↲
Env::negotiateEncoding
↲
Env::negotiateLanguage
↲
Env::setResponseCode
↲
Env::setResponseHeader
#
static
http\Message\Body
http\Env::getRequestBody
([
string
$body_class_name
])
Retrieve the current HTTP request's body.
Params:
#
Optional
string
$body_class_name
#
A user
class
extending
http\Message\Body
.
Returns:
#
http\Message\Body
instance representing the request body
Throws:
#
http\Exception\InvalidArgumentException
http\Exception\UnexpectedValueException
Show Comments from Github Discussions