@@ -212,6 +212,9 @@ public final class HTTP2ToHTTP1ClientCodec: ChannelInboundHandler, ChannelOutbou
212212 }
213213}
214214
215+ @available ( * , unavailable)
216+ extension HTTP2ToHTTP1ClientCodec : Sendable { }
217+
215218/// A simple channel handler that translates HTTP/2 concepts into HTTP/1 data types,
216219/// and vice versa, for use on the client side.
217220///
@@ -230,7 +233,7 @@ public final class HTTP2FramePayloadToHTTP1ClientCodec: ChannelInboundHandler, C
230233 private var baseCodec : BaseClientCodec
231234
232235 /// The HTTP protocol scheme being used on this connection.
233- public enum HTTPProtocol {
236+ public enum HTTPProtocol : Sendable , Hashable {
234237 case https
235238 case http
236239 }
@@ -279,6 +282,9 @@ public final class HTTP2FramePayloadToHTTP1ClientCodec: ChannelInboundHandler, C
279282 }
280283}
281284
285+ @available ( * , unavailable)
286+ extension HTTP2FramePayloadToHTTP1ClientCodec : Sendable { }
287+
282288// MARK: - Server
283289
284290private struct BaseServerCodec {
@@ -423,6 +429,9 @@ public final class HTTP2ToHTTP1ServerCodec: ChannelInboundHandler, ChannelOutbou
423429 }
424430}
425431
432+ @available ( * , unavailable)
433+ extension HTTP2ToHTTP1ServerCodec : Sendable { }
434+
426435/// A simple channel handler that translates HTTP/2 concepts into HTTP/1 data types,
427436/// and vice versa, for use on the server side.
428437///
@@ -475,6 +484,9 @@ public final class HTTP2FramePayloadToHTTP1ServerCodec: ChannelInboundHandler, C
475484 }
476485}
477486
487+ @available ( * , unavailable)
488+ extension HTTP2FramePayloadToHTTP1ServerCodec : Sendable { }
489+
478490extension HTTPMethod {
479491 /// Create a `HTTPMethod` from the string representation of that method.
480492 fileprivate init ( methodString: String ) {
0 commit comments