abstract | |
---|---|
implements |
HttpMessageInterface |
uses |
HasHttpHeaders, HasMutator |
Base class for PSR-7 HTTP message classes
Methods | ||
---|---|---|
abstract
protected
|
getStartLine(): string
|
# |
public
|
__construct(
StreamInterface|resource|string|null $body = null,
Arrayable<string, string[]|string>|iterable<string, string[]|string>|null $headers = null,
string $version = '1.1',
)
|
# |
public
|
getProtocolVersion(): string
|
# |
public
|
getBody(): StreamInterface
|
# |
public
|
getHttpPayload(bool $withoutBody = false): string
|
# |
public
|
withProtocolVersion(string $version): MessageInterface
|
# |
public
|
withBody(StreamInterface|resource|string|null $body): MessageInterface
|
# |
public
|
__toString(): string
|
# |
public
|
jsonSerialize(
): array{httpVersion: string, cookies: array<array{name: string, value: string, path?: string, domain?: string, expires?: string, httpOnly?: bool, secure?: bool}>, headers: array<array{name: string, value: string}>, headersSize: int, bodySize: int}
|
# |
Properties | |||
---|---|---|---|
protected
|
string
|
$ProtocolVersion
|
# |
protected
|
HttpHeadersInterface
|
$Headers
|
# |
protected
|
StreamInterface
|
$Body
|
# |