Horde_Controller_Filter_Gzip
in package
implements
Horde_Controller_PostFilter
Filter to gzip content before being served
Tags
Interfaces, Classes, Traits and Enums
- Horde_Controller_PostFilter
- Interface for filters that are executed after the controller has generated the response
Table of Contents
- processResponse() : mixed
- _byteCount() : mixed
- If mbstring is set to overload str* function then we could be counting multi-byte chars as single bytes so we need to treat the string like its 8-bit encoded to get an accurate byte count.
Methods
processResponse()
public
processResponse(Horde_Controller_Request $request, Horde_Controller_Response $response, Horde_Controller $controller) : mixed
Parameters
- $request : Horde_Controller_Request
- $response : Horde_Controller_Response
- $controller : Horde_Controller
Return values
mixed —_byteCount()
If mbstring is set to overload str* function then we could be counting multi-byte chars as single bytes so we need to treat the string like its 8-bit encoded to get an accurate byte count.
protected
_byteCount(mixed $string) : mixed
Parameters
- $string : mixed