Request
in package
implements
RequestInterface
uses
MessageTrait, RequestTrait
Tags
Table of Contents
Interfaces
- RequestInterface
- Representation of an outgoing, client-side request.
Methods
- __construct() : mixed
Methods
__construct()
public
__construct(string $method, string|UriInterface $uri[, array<string|int, mixed> $headers = [] ][, string|resource|StreamInterface|null $body = null ][, string $version = '1.1' ]) : mixed
Parameters
- $method : string
-
HTTP method
- $uri : string|UriInterface
-
URI
- $headers : array<string|int, mixed> = []
-
Request headers
- $body : string|resource|StreamInterface|null = null
-
Request body
- $version : string = '1.1'
-
Protocol version