aidphp/http-middleware

HTTP Middlewares

1.0.0 2019-04-12 13:25 UTC

This package is auto-updated.

Last update: 2024-04-18 02:16:40 UTC


README

Build Status Scrutinizer Code Quality Code Coverage Build Status

This repository contains the following middlewares:

  • ContentMiddleware inject the Content-Type and Content-Length header into a PSR-7 ResponseInterface headers.
  • SenderMiddleware to send a PSR-7 ResponseInterface headers and body.
  • FormContentMiddleware to decode the URL-encoded content of a PSR-7 RequestInterface.
  • JsonContentMiddleware to decode the JSON content of a PSR-7 RequestInterface.