extends |
MessageInterface |
---|
Representation of an outgoing, server-side response.
Per the HTTP specification, this interface includes properties for each of the following:
Responses are considered immutable; all methods that might change state MUST be implemented such that they retain the internal state of the current message and return an instance that contains the changed state.
Methods | ||
---|---|---|
public
|
getStatusCode(): int
|
# |
public
|
withStatus(int $code, string $reasonPhrase = ''): static
|
# |
public
|
getReasonPhrase(): string
|
# |