middlewares/content-length

Name: content-length

Owner: Middlewares

Description: PSR-15 middleware to inject the Content-Length header into the response

Created: 2018-03-15 19:23:38.0

Updated: 2018-03-17 21:56:56.0

Pushed: 2018-03-17 21:56:55.0

Homepage:

Size: 9

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

middlewares/content-length

Latest Version on Packagist Software License Build Status Quality Score Total Downloads SensioLabs Insight

Middleware to inject the Content-Length header into the response based on the body size.

Requirements
Installation

This package is installable and autoloadable via Composer as middlewares/content-length.

oser require middlewares/content-length
Example
patcher = new Dispatcher([
new Middlewares\ContentLength()


ponse = $dispatcher->dispatch(new ServerRequest());

Please see CHANGELOG for more information about recent changes and CONTRIBUTING for contributing details.

The MIT License (MIT). Please see LICENSE for more information.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.