This repository has been archived by the owner on Jun 30, 2020. It is now read-only.
Releases: oscarotero/psr7-middlewares
Releases · oscarotero/psr7-middlewares
1.4.0
- New
Minify
middleware, to minify the html/css/js content formatNegotiator
applies the Conten-Type header to the response before the next middleware (instead after)
1.3.0
New TrailingSlash middleware, to remove the trailing slash from the path ("/foo/bar/" => "/foo/bar"
)
1.2.3
SaveResponse wont save the response if the header Cache-Control: no-cache
exists.
1.2.2
SaveResponse fixes. Do not save responses if:
- It has a different status code than 200.
- It's from requests with query parameters.
1.2.1
Fixed router middlewares with non-writable responses
1.2.0
- New ErrorResponseHandler middleware
- Improvements in AuraRouter:
- You can retrieve the matched route using
$request->getAttribute('ROUTE')
- Better failed route handling. Now it returns the status code 404, 405 or 406
- You can retrieve the matched route using
1.1.0
Improved FormatNegotiator:
- Accepts more mimetypes
- Adds the
Content-Type
header to the response if it's missing - Accepts an instance of
Negotiation\FormatNegotiator
as first argument instead an array.
1.0.0
First stable release