Zend\Feed\PubSubHubbub\HttpResponse
Synopsis
class HttpResponse
{
- // members
- protected string $content;
- protected array $headers;
- protected integer $statusCode;
- // methods
- public void send()
- public void sendHeaders()
- public HttpResponse setHeader()
- public string|null getHeader()
- public array getHeaders()
- public HttpResponse canSendHeaders()
- public HttpResponse setStatusCode()
- public int getStatusCode()
- public HttpResponse setContent()
- public string getContent()
- protected string _normalizeHeader()
Members
protected
- $content
—
string
The body of any response to the current callback request - $headers
—
array
Array of headers. Each header is an array with keys 'name' and 'value' - $statusCode
—
int
HTTP response code to use in headers
Methods
protected
- _normalizeHeader() — Normalizes a header name to X-Capitalized-Names
public
- canSendHeaders() — Can we send headers?
- getContent() — Return the body content
- getHeader() — Check if a specific Header is set and return its value
- getHeaders() — Return array of headers; see {@link $headers} for format
- getStatusCode() — Retrieve HTTP response code
- send() — Send the response, including all headers
- sendHeaders() — Send all headers
- setContent() — Set body content
- setHeader() — Set a header
- setStatusCode() — Set HTTP response code to use with headers