HttpResponseProcessor
in package
implements
HttpResponseProcessorInterface
Class HttpResponseProcessor
Tags
Interfaces, Classes and Traits
- HttpResponseProcessorInterface
- Interface HttpResponseProcessorInterface
Table of Contents
- proceed() : mixed
- Processes the http response object which is returned by a controller action method.
- _sendBody() : mixed
- Sends the response body data to the client.
- _sendHeaders() : mixed
- Sends the response header data to the client by the given http headers array.
Methods
proceed()
Processes the http response object which is returned by a controller action method.
public
proceed(HttpControllerResponseInterface $response) : mixed
Sends the processed response header and body to the client (Either redirect or display some output).
Parameters
- $response : HttpControllerResponseInterface
-
Response object from the controllers action method.
Return values
mixed —_sendBody()
Sends the response body data to the client.
protected
_sendBody(string $httpBody) : mixed
Parameters
- $httpBody : string
-
Rendered response body.
Return values
mixed —_sendHeaders()
Sends the response header data to the client by the given http headers array.
protected
_sendHeaders(array<string|int, mixed> $httpHeadersArrays) : mixed
Parameters
- $httpHeadersArrays : array<string|int, mixed>
-
Array which contains the header items.