Skip to content

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

License

Notifications You must be signed in to change notification settings

middlewares/content-length

Repository files navigation

middlewares/content-length

Latest Version on Packagist Software License Testing Total Downloads

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.

composer require middlewares/content-length

Example

$dispatcher = new Dispatcher([
    new Middlewares\ContentLength()
]);

$response = $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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages