getProtocolVersion()
Retrieves the HTTP protocol version as a string.
withoutHeader($name)
Return an instance without the specified header.
HTTP messages consist of requests from a client to a server and responses from a server to a client...
withHeader($name, $value)
Return an instance with the provided value replacing the specified header.
getBody()
Gets the body of the message.
getHeader($name)
Retrieves a message header value by the given case-insensitive name.
withAddedHeader($name, $value)
Return an instance with the specified header appended with the given value.
withBody(StreamInterface $body)
Return an instance with the specified message body.
hasHeader($name)
Checks if a header exists by the given case-insensitive name.
withProtocolVersion($version)
Return an instance with the specified HTTP protocol version.
getHeaders()
Retrieves all message header values.
getHeaderLine($name)
Retrieves a comma-separated string of the values for a single header.