aidphp/http-middleware

HTTP Middlewares

1.0.0 2019-04-12 13:25 UTC

This package is auto-updated.

Last update: 2024-10-18 03:29:57 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.