abstract | |
---|---|
implements |
MessageInterface |
This is the abstract base class for both the Request and Response objects.
This object contains a few simple methods that are shared by both.
Methods | ||
---|---|---|
public
|
getBodyAsStream(): resource
|
# |
public
|
getBodyAsString(): string
|
# |
public
|
getBody(): resource|string|callable
|
# |
public
|
setBody(resource|string|callable $body)
|
# |
public
|
getHeaders(): array
|
# |
public
|
hasHeader(string $name): bool
|
# |
public
|
getHeader(string $name): string|null
|
# |
public
|
getHeaderAsArray(string $name): string[]
|
# |
public
|
setHeader(string $name, string|string[] $value)
|
# |
public
|
setHeaders(array $headers)
|
# |
public
|
addHeader(string $name, string|string[] $value)
|
# |
public
|
addHeaders(array $headers)
|
# |
public
|
removeHeader(string $name): bool
|
# |
public
|
setHttpVersion(string $version)
|
# |
public
|
getHttpVersion(): string
|
# |