middlewares/content-length
Composer 安装命令:
composer require middlewares/content-length
包简介
Middleware to inject the Content-Length header into the response based on the body size
README 文档
README
Middleware to inject the Content-Length header into the response based on the body size.
Requirements
- PHP >= 7.2
- A PSR-7 http library
- A PSR-15 middleware dispatcher
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.
统计信息
- 总下载量: 13.11k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-03-15