HttpResponseProcessor

Implements \HttpResponseProcessorInterface

Class HttpResponseProcessor

category

System

package

Http

implements

HttpResponseProcessorInterface

Methods

Sends the response body data to the client.

_sendBody(string $httpBody) 

Arguments

$httpBody

string

Rendered response body.

Sends the response header data to the client by the given http headers array.

_sendHeaders(array $httpHeadersArrays) 
see \header

Function to send headers data.

Arguments

$httpHeadersArrays

array

Array which contains the header items.

Processes the http response object which is returned by a controller action method.

proceed(\HttpControllerResponseInterface $response) 

Sends the processed response header and body to the client (Either redirect or display some output).

Arguments

$response

\HttpControllerResponseInterface

Response object from the controllers action method.