5use GuzzleHttp\Psr7\Uri;
6use Psr\Http\Message\StreamInterface;
7use Psr\Http\Message\UploadedFileInterface;
8use Psr\Http\Message\UriInterface;
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'] ??
'' );