public function Request::__construct in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/http-foundation/Request.php \Symfony\Component\HttpFoundation\Request::__construct()
- 8 vendor/symfony/browser-kit/Request.php \Symfony\Component\BrowserKit\Request::__construct()
- 8 vendor/zendframework/zend-diactoros/src/Request.php \Zend\Diactoros\Request::__construct()
- 8 vendor/guzzlehttp/psr7/src/Request.php \GuzzleHttp\Psr7\Request::__construct()
- 8 vendor/jcalderonzumba/gastonjs/src/NetworkTraffic/Request.php \Zumba\GastonJS\NetworkTraffic\Request::__construct()
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-diactoros/src/Request.php \Zend\Diactoros\Request::__construct()
Parameters
null|string $uri URI for the request, if any.:
null|string $method HTTP method for the request, if any.:
string|resource|StreamInterface $body Message body, if any.:
array $headers Headers for the message, if any.:
Throws
\InvalidArgumentException for any invalid value.
File
- vendor/
zendframework/ zend-diactoros/ src/ Request.php, line 33
Class
- Request
- HTTP Request encapsulation
Namespace
Zend\DiactorosCode
public function __construct($uri = null, $method = null, $body = 'php://temp', array $headers = []) {
$this
->initialize($uri, $method, $body, $headers);
}