Instance Methodswift-nio 2.77.0NIOHTTP1
userInboundEventTriggered(context:event:)
NIOTypedHTTPServerUpgradeHandler.swift:157- iOS
- 16+
- macOS
- 13+
- tvOS
- 16+
- watchOS
- 9+
func userInboundEventTriggered(context: ChannelHandlerContext, event: Any)
func userInboundEventTriggered(context: ChannelHandlerContext, event: Any)
s8NIOHTTP132NIOTypedHTTPServerUpgradeHandlerC25userInboundEventTriggered7context5eventy7NIOCore07ChannelE7ContextC_yptF
What are these?3VI05
import NIOHTTP1
final class NIOTypedHTTPServerUpgradeHandler<UpgradeResult> where UpgradeResult : Sendable
A server-side channel handler that receives HTTP requests and optionally performs an HTTP-upgrade.
final class ChannelHandlerContext
Every ChannelHandler
has – when added to a ChannelPipeline
– a corresponding ChannelHandlerContext
which is the way ChannelHandler
s can interact with other ChannelHandler
s in the pipeline.
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)
typealias InboundIn = HTTPServerRequestPart
typealias InboundOut = HTTPServerRequestPart
typealias OutboundOut = HTTPServerResponsePart