category Zend
package Zend_Feed_Pubsubhubbub
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Can we send headers?

canSendHeaders(boolean $throw = false) : boolean

Parameters

$throw

boolean

Whether or not to throw an exception if headers have been sent; defaults to false

Exceptions

\Zend_Feed_Pubsubhubbub_Exception

Returns

boolean

Return the body content

getBody() : string

Returns

string

Check if a specific Header is set and return its value

getHeader(string $name) : string | null

Parameters

$name

string

Returns

stringnull

Return array of headers; see {@link $_headers} for format

getHeaders() : array

Returns

array

Retrieve HTTP response code

getHttpResponseCode() : integer

Returns

integer

Send all headers

sendHeaders() : void

Sends any headers specified. If an \setHttpResponseCode() has been specified, it is sent with the first header.

Send the response, including all headers

sendResponse() : void

Set body content

setBody(string $content) : \Zend_Feed_Pubsubhubbub_HttpResponse

Parameters

$content

string

Returns

\Zend_Feed_Pubsubhubbub_HttpResponse

Set a header

setHeader(string $name, string $value, boolean $replace = false) : \Zend_Feed_Pubsubhubbub_HttpResponse

If $replace is true, replaces any headers already defined with that $name.

Parameters

$name

string

$value

string

$replace

boolean

Returns

\Zend_Feed_Pubsubhubbub_HttpResponse

Set HTTP response code to use with headers

setHttpResponseCode(integer $code) : \Zend_Feed_Pubsubhubbub_HttpResponse

Parameters

$code

integer

Exceptions

\Zend_Feed_Pubsubhubbub_Exception

Returns

\Zend_Feed_Pubsubhubbub_HttpResponse

Normalizes a header name to X-Capitalized-Names

_normalizeHeader(string $name) : string

Parameters

$name

string

Returns

string

 Properties

 

The body of any response to the current callback request

$_body : string

Default

''
 

Array of headers. Each header is an array with keys 'name' and 'value'

$_headers : array

Default

array()
 

HTTP response code to use in headers

$_httpResponseCode : integer

Default

200