thruster/http-modifiers

Thruster HttpModifier Collection of Modifiers

1.2.0 2016-02-12 17:09 UTC

This package is auto-updated.

Last update: 2024-04-14 02:13:19 UTC


README

[Latest Version] (https://github.com/ThrusterIO/http-modifiers/releases) [Software License] (LICENSE) [Build Status] (https://travis-ci.org/ThrusterIO/http-modifiers) [Code Coverage] (https://scrutinizer-ci.com/g/ThrusterIO/http-modifiers) [Quality Score] (https://scrutinizer-ci.com/g/ThrusterIO/http-modifiers) [Total Downloads] (https://packagist.org/packages/thruster/http-modifiers)

[Email] (mailto:team@thruster.io)

The Thruster HttpModifier Collection of Modifiers

Install

Via Composer

$ composer require thruster/http-modifiers

Available Modifiers

Name Type Description
AddClientUserAgentModifier RequestModifier Adds User-Agent header to RequestInterface
AddServerPoweredByModifier ResponseModifier Adds X-Powered-By header to Response Interface
AddServerTimeModifier ResponseModifier Adds Date header to Response Interface with gmdate
ParseCookieParamModifier ServerRequestModifier Parses Cookie header and fills ServerRequestInterface::cookieParams
ParseJsonRequestBodyModifier ServerRequestModifier Parses json body and fills ServerRequestInterface::parsedBody
ParseMultiPartBodyModifier ServerRequestModifier Parses multipart body and fills ServerRequestInterface::parsedBody and ServerRequestInterface::uploadedFiles
ParseQueryParamModifier ServerRequestModifier Parses getUri()->getQuery() and fills ServerRequestInterface::queryParams
ParseURLEncodedBodyModifier ServerRequestModifier Parses url-encoded body and fills ServerRequestInterface::parsedBody

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

License

Please see License File for more information.