Type Aliasswift-nio 2.81.0NIOHTTP1
InboundIn
NIOTypedHTTPServerUpgradeHandler.swift:81- iOS
- 16+
- macOS
- 13+
- tvOS
- 16+
- watchOS
- 9+
typealias InboundIn = HTTPServerRequestPart
typealias InboundIn = HTTPServerRequestPart
s8NIOHTTP132NIOTypedHTTPServerUpgradeHandlerC9InboundIna
What are these?8DE8Y
import NIOHTTP1
final class NIOTypedHTTPServerUpgradeHandler<UpgradeResult> where UpgradeResult : Sendable
A server-side channel handler that receives HTTP requests and optionally performs an HTTP-upgrade.
typealias HTTPServerRequestPart = HTTPPart<HTTPRequestHead, ByteBuffer>
The components of a HTTP request from the view of a HTTP server.
init(httpEncoder: HTTPResponseEncoder, extraHTTPHandlers: [RemovableChannelHandler], upgradeConfiguration: NIOTypedHTTPServerUpgradeConfiguration<UpgradeResult>)
Create a NIOTypedHTTPServerUpgradeHandler
.
var upgradeResultFuture: EventLoopFuture<UpgradeResult> { get }
The upgrade future which will be completed once protocol upgrading has been done.
func channelRead(context: ChannelHandlerContext, data: NIOAny)
func handlerAdded(context: ChannelHandlerContext)
func handlerRemoved(context: ChannelHandlerContext)
func userInboundEventTriggered(context: ChannelHandlerContext, event: Any)
typealias InboundOut = HTTPServerRequestPart
typealias OutboundOut = HTTPServerResponsePart