1491. Class

1491.1. Zend\Feed\PubSubHubbub\HttpResponse

1491.1.1. Methods

1491.1.1.1. send

send()

Send the response, including all headers

Return type:void

1491.1.1.2. sendHeaders

sendHeaders()

Send all headers

Sends any headers specified. If an {@link setHttpResponseCode() HTTP response code} has been specified, it is sent with the first header.

Return type:void

1491.1.1.3. setHeader

setHeader()

Set a header

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

Parameters:
  • string
  • string
  • bool
Return type:

ZendFeedPubSubHubbubHttpResponse

1491.1.1.4. getHeader

getHeader()

Check if a specific Header is set and return its value

Parameters:string
Return type:string|null

1491.1.1.5. getHeaders

getHeaders()

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

Return type:array

1491.1.1.6. canSendHeaders

canSendHeaders()

Can we send headers?

Parameters:bool – Whether or not to throw an exception if headers have been sent; defaults to false
Return type:HttpResponse
Throws :ExceptionRuntimeException

1491.1.1.7. setStatusCode

setStatusCode()

Set HTTP response code to use with headers

Parameters:int
Return type:HttpResponse
Throws :ExceptionInvalidArgumentException

1491.1.1.8. getStatusCode

getStatusCode()

Retrieve HTTP response code

Return type:int

1491.1.1.9. setContent

setContent()

Set body content

Parameters:string
Return type:ZendFeedPubSubHubbubHttpResponse

1491.1.1.10. getContent

getContent()

Return the body content

Return type:string

1491.1.1.11. _normalizeHeader

_normalizeHeader()

Normalizes a header name to X-Capitalized-Names

Parameters:string
Return type:string