$headers
$headers : array
Headers
Abstract HTTP class
$body : \Pop\Mime\Part\Body
Body
addHeader(\Pop\Mime\Part\Header|string $header, string $value = null) : \Pop\Http\AbstractHttp
Add a header
\Pop\Mime\Part\Header|string | $header | |
string | $value |
addHeaders(array $headers) : \Pop\Http\AbstractHttp
Add all headers
array | $headers |
removeHeader(string $name) : \Pop\Http\AbstractHttp
Remove a header
string | $name |
removeHeaders() : \Pop\Http\AbstractHttp
Remove all headers
setBody(string|\Pop\Mime\Part\Body $body) : \Pop\Http\AbstractHttp
Set the body
string|\Pop\Mime\Part\Body | $body |
getBody() : \Pop\Mime\Part\Body
Get the body
decodeBodyContent(string $body = null) : \Pop\Mime\Part\Body
Decode the body
string | $body |
removeBody() : \Pop\Http\AbstractHttp
Remove the body