Releases: ICanBoogie/HTTP
Releases · ICanBoogie/HTTP
v2.6.0
v2.5.0
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
DispatcherasRequestDispatcherandDispatcherInterfaceasDispatcher.
New features
- Event hooks may use the new
Dispatcher\AlterEventevent to alter the main dispatcher. - Added
ClientError,ServerError,AuthenticationRequired, andPermissionRequiredexceptions. - Added
FileResponsewith cache control and range support.
Other changes
- Improved
HEADfallback.
Fixed
- While dispatching, some dispatchers were unnecessarily wrapped in
CallableDispatcherinstances. - The
ETagheader was misspelled asEtag.
v2.3.0
v2.2.3
v2.2.2
Request
- Added
Request::change(). - Clone instantiated header fields.
- Clone context.
Response
- Preserve defined
Content-Length. Content-Lengthis 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
v2.2.0
- Using PSR-4.
- Moved header field classes into the
ICanBoogie\HTTP\Headersnamespace. - Renamed
CacheControlHeaderasCacheControl,ContentDispositionHeaderasContentDisposition,ContentTypeHeaderasContentType, andDateHeaderasDate. - Renamed
IDispatcherasDispatcherInterface.
Support for request files
- Added support for request files
Request::from()now supportsheaders.- Added the
finalize()method toResponse. - Use
PrototypeTrait. - Updated exceptions.
Using icanboogie/prototype 2.x
- Requires PHP 5.4
- Using icanboogie/prototype 2.x
- Using icanboogie/common's sort_by_weight()