You are here

public function Request::__construct in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/http-foundation/Request.php \Symfony\Component\HttpFoundation\Request::__construct()
  2. 8.0 vendor/symfony/browser-kit/Request.php \Symfony\Component\BrowserKit\Request::__construct()
  3. 8.0 vendor/zendframework/zend-diactoros/src/Request.php \Zend\Diactoros\Request::__construct()
  4. 8.0 vendor/guzzlehttp/psr7/src/Request.php \GuzzleHttp\Psr7\Request::__construct()
  5. 8.0 vendor/jcalderonzumba/gastonjs/src/NetworkTraffic/Request.php \Zumba\GastonJS\NetworkTraffic\Request::__construct()
Same name and namespace in other branches
  1. 8 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\Diactoros

Code

public function __construct($uri = null, $method = null, $body = 'php://temp', array $headers = []) {
  $this
    ->initialize($uri, $method, $body, $headers);
}