52e5594363bed2baec07d08dd3e1e26c84172a3d
[mdref/mdref-http] / http / Env / getRequestBody.md
1 # static http\Message\Body http\Env::getRequestBody([string $body_class_name])
2
3 Retreive the current HTTP request's body.
4
5 ## Parameters:
6
7 * Optional string $body_class_name
8 A user class extending http\Message\Body.
9
10 ## Returns:
11
12 * http\Message\Body instance representing the request body
13
14 ## Throws:
15
16 * http\Exception\InvalidArgumentException
17 * http\Exception\UnexpectedValueException