Skip to content
This repository has been archived by the owner on Jun 30, 2020. It is now read-only.

Releases: oscarotero/psr7-middlewares

1.4.0

30 Jul 10:00
Compare
Choose a tag to compare
  • 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

23 Jul 09:04
Compare
Choose a tag to compare

New TrailingSlash middleware, to remove the trailing slash from the path ("/foo/bar/" => "/foo/bar")

1.2.3

16 Jul 20:24
Compare
Choose a tag to compare

SaveResponse wont save the response if the header Cache-Control: no-cache exists.

1.2.2

15 Jul 09:29
Compare
Choose a tag to compare

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

13 Jul 21:35
Compare
Choose a tag to compare

Fixed router middlewares with non-writable responses

1.2.0

10 Jul 10:20
Compare
Choose a tag to compare
  • 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

1.1.0

26 Jun 08:21
Compare
Choose a tag to compare

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

25 Jun 20:27
Compare
Choose a tag to compare

First stable release