示例#1
0
 public function __construct($version = '1.1', array $headers = array(), StreamInterface $body = null, $requestTarget = '/', $method = 'GET', $uri = null, array $server = array(), array $cookies = array(), array $query = array(), array $uploadedFiles = array(), $data = null, array $attributes = array())
 {
     parent::__construct($version, $headers, $body);
     $this->requestTarget = $requestTarget;
     $this->method = $method;
     $this->uri = $uri;
     $this->server = $server;
     $this->cookies = $cookies;
     $this->query = $query;
     $this->uploadedFiles = $uploadedFiles;
     $this->data = $data;
     $this->attributes = $attributes;
 }
示例#2
0
 public function __construct($version = '1.1', array $headers = array(), StreamInterface $body = null, $statusCode = 200)
 {
     parent::__construct($version, $headers, $body);
     $this->statusCode = $statusCode;
 }