5use GuzzleHttp\Psr7\Uri;
6use Psr\Http\Message\StreamInterface;
7use Psr\Http\Message\UploadedFileInterface;
8use Psr\Http\Message\UriInterface;
20 private $protocolVersion;
25 private $serverParams;
27 private $cookieParams;
32 private $uploadedFiles;
55 $this->method = $params[
'method'] ??
'GET';
56 $this->uri = $params[
'uri'] ??
new Uri;
57 $this->protocolVersion = $params[
'protocolVersion'] ??
'1.1';
58 $this->body =
new StringStream( $params[
'bodyContents'] ??
'' );
59 $this->serverParams = $params[
'serverParams'] ?? [];
60 $this->cookieParams = $params[
'cookieParams'] ?? [];
61 $this->queryParams = $params[
'queryParams'] ?? [];
62 $this->uploadedFiles = $params[
'uploadedFiles'] ?? [];
63 $this->postParams = $params[
'postParams'] ?? [];
66 parent::__construct( $params[
'cookiePrefix'] ??
'' );
78 return $this->protocolVersion;
86 return $this->serverParams;
90 return $this->cookieParams;
94 return $this->queryParams;
98 return $this->uploadedFiles;
102 return $this->postParams;