Type Aliasswift-nio 2.81.0NIOHTTP1
InboundOut
HTTPServerUpgradeHandler.swift:66typealias InboundOut = HTTPServerRequestPart
typealias InboundOut = HTTPServerRequestPart
import NIOHTTP1
final class HTTPServerUpgradeHandler
A server-side channel handler that receives HTTP requests and optionally performs a HTTP-upgrade. Removes itself from the channel pipeline after the first inbound request on the connection, regardless of whether the upgrade succeeded or not.
typealias HTTPServerRequestPart = HTTPPart<HTTPRequestHead, ByteBuffer>
The components of a HTTP request from the view of a HTTP server.
init(upgraders: [HTTPServerProtocolUpgrader], httpEncoder: HTTPResponseEncoder, extraHTTPHandlers: [RemovableChannelHandler], upgradeCompletionHandler: @escaping (ChannelHandlerContext) -> Void)
Create a HTTPServerUpgradeHandler
.
func channelRead(context: ChannelHandlerContext, data: NIOAny)
func removeHandler(context: ChannelHandlerContext, removalToken: ChannelHandlerContext.RemovalToken)
typealias InboundIn = HTTPServerRequestPart
typealias OutboundOut = HTTPServerResponsePart