Skip to content

Releases: ICanBoogie/HTTP

v2.6.0

02 Jan 03:50
Compare
Choose a tag to compare

New features

  • Added DispatcherProvider
  • Added RequestOptions
  • Added RequestMethods
  • Added ResponseStatus
  • Added RequestOptionsMapper
  • Added FileOptions

v2.5.0

19 Sep 14:23
Compare
Choose a tag to compare

Updated requirements

  • PHP 5.5+
  • icanboogie/prototype 2.3.0
  • icanboogie/event 1.4.0|2.0.0
  • icanboogie/datetime 1.2.0

Backward incompatible changes

  • Helpers are no longer patchable.
  • Renamed Dispatcher as RequestDispatcher and DispatcherInterface as Dispatcher.

New features

  • Event hooks may use the new Dispatcher\AlterEvent event to alter the main dispatcher.
  • Added ClientError, ServerError, AuthenticationRequired, and PermissionRequired exceptions.
  • Added FileResponse with cache control and range support.

Other changes

  • Improved HEAD fallback.

Fixed

  • While dispatching, some dispatchers were unnecessarily wrapped in CallableDispatcher instances.
  • The ETag header was misspelled as Etag.

v2.3.0

03 Feb 23:19
Compare
Choose a tag to compare
  • Refactored Response and added Status.
  • Extended code coverage

v2.2.3

15 Jan 21:12
Compare
Choose a tag to compare
  • Better properties copy on change().

v2.2.2

14 Nov 08:58
Compare
Choose a tag to compare

Request

  • Added Request::change().
  • Clone instantiated header fields.
  • Clone context.

Response

  • Preserve defined Content-Length.
  • Content-Length is set if the length of the body can be determined.

Dsipatcher

  • The body of the response is stripped if the request method is HEAD.

v2.2.1

23 Oct 09:19
Compare
Choose a tag to compare
  • Request::send() alias to __invoke()
  • Request::from considers stringifiable instances as strings.
  • Renamed Request::$previous as parent.
  • Added DispatcherNotDefined.
  • is_private can be set to false.

v2.2.0

15 Sep 08:04
Compare
Choose a tag to compare
  • Using PSR-4.
  • Moved header field classes into the ICanBoogie\HTTP\Headers namespace.
  • Renamed CacheControlHeader as CacheControl, ContentDispositionHeader as ContentDisposition, ContentTypeHeader as ContentType, and DateHeader as Date.
  • Renamed IDispatcher as DispatcherInterface.

Support for request files

28 Aug 13:13
Compare
Choose a tag to compare
  • Added support for request files
  • Request::from() now supports headers.
  • Added the finalize() method to Response.
  • Use PrototypeTrait.
  • Updated exceptions.

Using icanboogie/prototype 2.x

12 Apr 19:45
Compare
Choose a tag to compare
  • Requires PHP 5.4
  • Using icanboogie/prototype 2.x
  • Using icanboogie/common's sort_by_weight()