v2.0.0 Alpha 3
Pre-release
Pre-release
Breaking changes
- Removed
HBRequestContext.init(allocator:logger:)
as a protocol requirement, removed default implementation ofHBRequestContext.init(channel:logger:)
requirement. - JobQueue protocol has associated type
JobID
for identifying a job. - Removed
GracefulShutdownWaiter
. Instead usetry await gracefulShutdown()
which is already provided by ServiceLifecycle.
Minor release changes
- Added
HBParameter.get/require
function for types that conform toRawRepresentable
. - Added
HBRouterOptions
. Options includecaseInsensitive
: Route path matching is case insensitiveautoGenerateHeadEndpoints
: Automatically generate HEAD endpoints for all GET endpoints.
- Add primary associated type for
HBRouterMethods
. Thanks to @sidepelican
Patch release changes
- Fixed HTTP2 channel cleanup
- Replaced atomic in
HTTPChannelHandler.handleHTTP
with value wrapped inNIOLockedValueBox
- Tag retroactive protocol conformances.