addHeader()
addHeader(\Pop\Mime\Part\Header|string $header, string $value) : \Pop\Http\HttpInterface
Set a header
Parameters
\Pop\Mime\Part\Header|string | $header | |
string | $value |
HTTP interface
addHeader(\Pop\Mime\Part\Header|string $header, string $value) : \Pop\Http\HttpInterface
Set a header
\Pop\Mime\Part\Header|string | $header | |
string | $value |
addHeaders(array $headers) : \Pop\Http\HttpInterface
Set all headers
array | $headers |
removeHeader(string $name) : \Pop\Http\HttpInterface
Remove a header
string | $name |
removeHeaders() : \Pop\Http\HttpInterface
Remove all headers
setBody(string|\Pop\Mime\Part\Body $body) : \Pop\Http\HttpInterface
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 content
string | $body |
removeBody() : \Pop\Http\HttpInterface
Remove the body