[DEPRECATED] Collection of PSR-7 middlewares
ClientIp
. This changes the default behaviour of this middleware. More info #65Https
to invert the behaviour of the middleware #73Content-Type: text/plain
for robots.txt #47BasicAuthentication::checkUserPassword()
is protected, allowing to override it. #60Cors::logger()
to provide a psr-3 logger instance to debugging #61Payload::override()
to override the previous parsed body if exists.application/json
requestHttps::checkHttpsForward()
to check the headers X-Forwarded-Proto: https
or X-Forwarded-Port: 443
https
protocol to the Location
header in redirect responses to avoid infinite redirections #41micheh/psr-7cache ^0.5
#38ErrorHandler: added a statusCode
option to filter the status code handled by the middleware. Example:
Middleware::errorHandler('myHandler')
->statusCode(function ($code) {
return $code === 500;
});
location
Content-Type
header twice