apple / swift-nio-http2

HTTP/2 support for SwiftNIO
https://swiftpackageindex.com/apple/swift-nio-http2/main/documentation/niohttp2
Apache License 2.0
465 stars 82 forks source link

Adopt latest AsyncChannel changes #411

Closed FranzBusch closed 1 year ago

FranzBusch commented 1 year ago

Motivation

In my latest PR in NIO, I removed a bunch of API from the bootstrap methods to make the API easier to digest and reduce a number of duplicated code issues.

Modification

This PR adopts the latest NIO changes and adapts the APIs in H2. More specifically, it removes the NIOAsyncChannel convenience methods and makes sure that everything aligns nicely with the proposes bootstrap APIs.

Result

We now have the APIs in place to bootstrap a protocol negotiated H1/H2 server.