Skip to content

Releases: brick/http

0.3.2

13 Feb 22:34
Compare
Choose a tag to compare

🐛 Bug fix

Fix issue with numeric headers.

0.3.1

11 Nov 13:48
Compare
Choose a tag to compare

New features

  • Support for request attributes

0.3.0

09 Nov 23:17
Compare
Choose a tag to compare

💥 Breaking changes

  • Minimum PHP version is now 7.4
  • Classes Message, Request, Response, Cookie are now immutable
  • All classes are now final
  • All methods that affect state (set*(), add*(), remove*(), ...) have been removed
  • The outdated RequestInterface and ResponseInterface have been removed

0.2.5

09 Nov 14:20
Compare
Choose a tag to compare

🗑 Deprecations

  • All methods that affect state (set*(), add*(), remove*(), ...) are now deprecated;

New features

  • Methods that return a new instance (with*(), without*(), ...) have been introduced to replace them.

In the next minor release, the deprecated versions will be removed and all classes with be made immutable.

0.2.4

09 Jan 21:34
Compare
Choose a tag to compare

Minor bug fix

HttpRedirectException was not passing message & previous exception to its parent.

0.2.3

15 Apr 13:09
Compare
Choose a tag to compare

🐛 Bug fix

Variables passed to setQuery(), setPost() and setCookies() are now always cast to string and (nested) arrays of strings.

The previous behaviour (storing the original array as is) could lead to unexpected bugs with code that expected the values returned by getQuery(), getPost() and getCookies() to be strings, which is normally the case with data retrieved from an actual HTTP request.

0.2.2

11 Mar 10:51
Compare
Choose a tag to compare
  • Fix TypeError in Response::parse() (@peter279k)
  • Enforce nested array of UploadedFile in Request::setFiles()

0.2.1

12 Dec 23:10
Compare
Choose a tag to compare

New method: Request::getAccept()

This method parses the Accept request header.

0.2.0

08 Nov 10:44
Compare
Choose a tag to compare
  • Client/server code has been removed, and will be moved to brick/browser
  • RequestHandler interface is now in the Brick\Http namespace
  • RequestHandler::handle() signature has been changed to use a return type
  • Minimum PHP version is now 7.1

0.1.0

04 Oct 16:39
Compare
Choose a tag to compare

First beta release.