37 return $this->inner->getBodyAsStream();
51 return $this->inner->getBodyAsString();
64 return $this->inner->getBody();
76 $this->inner->setBody($body);
89 return $this->inner->getHeaders();
101 return $this->inner->hasHeader(
$name);
123 return $this->inner->getHeader(
$name);
140 return $this->inner->getHeaderAsArray(
$name);
157 $this->inner->setHeader(
$name, $value);
174 $this->inner->setHeaders($headers);
191 $this->inner->addHeader(
$name, $value);
205 $this->inner->addHeaders($headers);
222 return $this->inner->removeHeader(
$name);
236 $this->inner->setHttpVersion(
$version);
247 return $this->inner->getHttpVersion();
removeHeader($name)
Removes a HTTP header.
getHeaderAsArray($name)
Returns a HTTP header as an array.
getBody()
Returns the message body, as it's internal representation.
getHeaders()
Returns all the HTTP headers as an array.
getHeader($name)
Returns a specific HTTP header, based on it's name.
addHeaders(array $headers)
Adds a new set of HTTP headers.
setHeader($name, $value)
Updates a HTTP header.
addHeader($name, $value)
Adds a HTTP header.
getHttpVersion()
Returns the HTTP version.
getBodyAsString()
Returns the body as a string.
getBodyAsStream()
Returns the body as a readable stream resource.
setHeaders(array $headers)
Sets a new set of HTTP headers.
setHttpVersion($version)
Sets the HTTP version.
hasHeader($name)
Will return true or false, depending on if a HTTP header exists.
setBody($body)
Updates the body resource with a new stream.