setHeaders(array $headers)
Sets a new set of HTTP headers.
setBody($body)
Updates the body resource with a new stream.
getHeaderAsArray($name)
Returns a HTTP header as an array.
setHttpVersion($version)
Sets the HTTP version.
getBodyAsString()
Returns the body as a string.
getBodyAsStream()
Returns the body as a readable stream resource.
getHeaders()
Returns all the HTTP headers as an array.
addHeader($name, $value)
Adds a HTTP header.
removeHeader($name)
Removes a HTTP header.
hasHeader($name)
Will return true or false, depending on if a HTTP header exists.
getHeader($name)
Returns a specific HTTP header, based on it's name.
The MessageInterface is the base interface that's used by both the RequestInterface and ResponseInter...
getHttpVersion()
Returns the HTTP version.
setHeader($name, $value)
Updates a HTTP header.
getBody()
Returns the message body, as it's internal representation.
addHeaders(array $headers)
Adds a new set of HTTP headers.