Instance Methodswift-nio 2.84.0NIOHTTP1
close(context:mode:promise:)
HTTPServerPipelineHandler.swift:539func close(context: ChannelHandlerContext, mode: CloseMode, promise: EventLoopPromise<Void>?)
func close(context: ChannelHandlerContext, mode: CloseMode, promise: EventLoopPromise<Void>?)
s8NIOHTTP125HTTPServerPipelineHandlerC5close7context4mode7promisey7NIOCore07ChannelD7ContextC_AH9CloseModeOAH16EventLoopPromiseVyytGSgtF
What are these?9J9BF
import NIOHTTP1
final class HTTPServerPipelineHandler
A ChannelHandler
that handles HTTP pipelining by buffering inbound data until a response has been sent.
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.
enum CloseMode
Specify what kind of close operation is requested.
struct EventLoopPromise<Value>
A promise to provide a result later.
typealias Void = ()
The return type of functions that don’t explicitly specify a return type, that is, an empty tuple ()
.
init()
func channelInactive(context: ChannelHandlerContext)
func channelRead(context: ChannelHandlerContext, data: NIOAny)
func errorCaught(context: ChannelHandlerContext, error: any Error)
func handlerRemoved(context: ChannelHandlerContext)
func read(context: ChannelHandlerContext)
func userInboundEventTriggered(context: ChannelHandlerContext, event: Any)
func write(context: ChannelHandlerContext, data: NIOAny, promise: EventLoopPromise<Void>?)
struct ConnectionStateError
typealias InboundIn = HTTPServerRequestPart
typealias InboundOut = HTTPServerRequestPart
typealias OutboundIn = HTTPServerResponsePart
typealias OutboundOut = HTTPServerResponsePart