Method | Description | |
---|---|---|
body ( React\Stream\ReadableStreamInterface | string $body ) : StreamInterface | Creates a new instance of StreamInterface for the given body contents | |
expandBase ( Psr\Http\Message\UriInterface $uri, Psr\Http\Message\UriInterface $base ) : Psr\Http\Message\UriInterface | Resolves the given relative or absolute $uri by appending it behind $this base URI | |
request ( string $method, string | Psr\Http\Message\UriInterface $uri, array $headers = [], string | React\Stream\ReadableStreamInterface $content = '' ) : RequestInterface | Creates a new instance of RequestInterface for the given request parameters | |
response ( string $version, integer $status, string $reason, array $headers = [], React\Stream\ReadableStreamInterface | string $body = '' ) : ResponseInterface | Creates a new instance of ResponseInterface for the given response parameters | |
uri ( Psr\Http\Message\UriInterface | string $uri ) : Psr\Http\Message\UriInterface | Creates a new instance of UriInterface for the given URI string or instance | |
uriRelative ( Psr\Http\Message\UriInterface $base, string $uri ) : Psr\Http\Message\UriInterface | Creates a new instance of UriInterface for the given URI string relative to the given base URI |
public expandBase ( Psr\Http\Message\UriInterface $uri, Psr\Http\Message\UriInterface $base ) : Psr\Http\Message\UriInterface | ||
$uri | Psr\Http\Message\UriInterface | |
$base | Psr\Http\Message\UriInterface | |
return | Psr\Http\Message\UriInterface |
public request ( string $method, string | Psr\Http\Message\UriInterface $uri, array $headers = [], string | React\Stream\ReadableStreamInterface $content = '' ) : RequestInterface | ||
$method | string | |
$uri | string | Psr\Http\Message\UriInterface | |
$headers | array | |
$content | string | React\Stream\ReadableStreamInterface | |
return | RequestInterface |
public response ( string $version, integer $status, string $reason, array $headers = [], React\Stream\ReadableStreamInterface | string $body = '' ) : ResponseInterface | ||
$version | string | |
$status | integer | |
$reason | string | |
$headers | array | |
$body | React\Stream\ReadableStreamInterface | string | |
return | ResponseInterface |
public uriRelative ( Psr\Http\Message\UriInterface $base, string $uri ) : Psr\Http\Message\UriInterface | ||
$base | Psr\Http\Message\UriInterface | |
$uri | string | |
return | Psr\Http\Message\UriInterface |