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
Dispatcher
asRequestDispatcher
andDispatcherInterface
asDispatcher
.
New features
- Event hooks may use the new
Dispatcher\AlterEvent
event to alter the main dispatcher. - Added
ClientError
,ServerError
,AuthenticationRequired
, andPermissionRequired
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 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-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
v2.2.0
- Using PSR-4.
- Moved header field classes into the
ICanBoogie\HTTP\Headers
namespace. - Renamed
CacheControlHeader
asCacheControl
,ContentDispositionHeader
asContentDisposition
,ContentTypeHeader
asContentType
, andDateHeader
asDate
. - Renamed
IDispatcher
asDispatcherInterface
.
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()