Methods

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

Returns

\Pop\Http\HttpInterface

addHeaders()

addHeaders(array  $headers) : \Pop\Http\HttpInterface

Set all headers

Parameters

array $headers

Returns

\Pop\Http\HttpInterface

getHeader()

getHeader(string  $name) : mixed

Get a header

Parameters

string $name

Returns

mixed

getHeaderValue()

getHeaderValue(string  $name) : mixed

Get header value

Parameters

string $name

Returns

mixed

getHeaders()

getHeaders() : array

Get all headers

Returns

array

getHeadersAsArray()

getHeadersAsArray() : array

Get all header values as associative array

Returns

array

getHeadersAsString()

getHeadersAsString(string  $status = null, string  $eol = "\r\n") : string

Get all header values formatted string

Parameters

string $status
string $eol

Returns

string

hasHeaders()

hasHeaders() : boolean

Determine if there are headers

Returns

boolean

hasHeader()

hasHeader(string  $name) : boolean

Has a header

Parameters

string $name

Returns

boolean

removeHeader()

removeHeader(string  $name) : \Pop\Http\HttpInterface

Remove a header

Parameters

string $name

Returns

\Pop\Http\HttpInterface

getBodyContent()

getBodyContent() : mixed

Get body content

Returns

mixed

hasBody()

hasBody() : boolean

Has a body

Returns

boolean

hasBodyContent()

hasBodyContent() : boolean

Has body content

Returns

boolean

decodeBodyContent()

decodeBodyContent(string  $body = null) : \Pop\Mime\Part\Body

Decode the body content

Parameters

string $body

Returns

\Pop\Mime\Part\Body