__construct() public method

public __construct ( null | string $uri = null, null | string $method = null, string | resource | StreamInterface $body = 'php://memory', array $headers = [] )
$uri null | string URI for the request, if any.
$method null | string HTTP method for the request, if any.
$body string | resource | StreamInterface Message body, if any.
$headers array Headers for the message, if any.
Esempio n. 1
0
 /**
  * @param null|string|\Psr\Http\Message\UriInterface            $uri        The request uri.
  * @param null|string                                           $method     The request method.
  * @param string|resource|\Psr\Http\Message\StreamableInterface $body       The request body.
  * @param array                                                 $headers    The request headers.
  * @param array                                                 $parameters The request parameters.
  */
 public function __construct($uri = null, $method = null, $body = 'php://memory', array $headers = array(), array $parameters = array())
 {
     parent::__construct($uri, $method, $body, $headers);
     $this->parameters = $parameters;
 }