yiisoft/http-middleware
最新稳定版本:1.1.0
Composer 安装命令:
composer require yiisoft/http-middleware
包简介
A collection of PSR-15 middlewares focused on HTTP features
关键字:
README 文档
README
Yii HTTP Middleware
The package provides a collection of PSR-15 middleware focused on HTTP features:
ContentLengthMiddleware— manages theContent-Lengthheader in the response;CorsAllowAllMiddleware— adds CORS headers allowing any request origins in later requests;ForceSecureConnectionMiddleware— redirects insecure requests from HTTP to HTTPS and adds headers necessary to enhance the security policy;HeadRequestMiddleware— removes body from response forHEADrequest;HttpCacheMiddleware— implements HTTP caching usingCache-Control,ETag, andLast-Modifiedheaders;RemoveBodyMiddleware— removes body from response by status code;TagRequestMiddleware— adds specific header to request, which can be used for logging or debugging purposes.
For proxy related middleware, there is a separate package Yii Proxy Middleware.
Requirements
- PHP 8.1 or higher.
Installation
The package could be installed with Composer:
composer require yiisoft/http-middleware
Documentation
If you need help or have a question, the Yii Forum is a good place for that. You may also check out other Yii Community Resources.
License
The Yii HTTP Middleware is free software. It is released under the terms of the BSD License.
Please see LICENSE for more information.
Maintained by Yii Software.
Support the project
Follow updates
统计信息
- 总下载量: 3.8k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2025-06-04