apple / swift-nio-http2

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

Generic helpers for HTTP/2 async pipelines #401

Closed rnro closed 1 year ago

rnro commented 1 year ago

Expose (as spi) generic helpers for HTTP/2 async pipelines

Motivation:

This PR is the first step in exposing APIs which surface HTTP/2 connections/streams using structured concurrency. This PR exposes the most abstract spelling of this concept, assuming no particular types/forms for the types involved in the stream channel types.

Modifications:

Result:

Adopters of the new SPI should be able to create outbound and deal with inbound HTTP/2 stream channels using async streams.

Outside of SPI there should be no changes.