Instance Methodswift-nio 2.72.0NIOHTTP1
channelRead(context:data:)
NIOHTTPObjectAggregator.swift:200func channelRead(context: ChannelHandlerContext, data: NIOAny)
func channelRead(context: ChannelHandlerContext, data: NIOAny)
s8NIOHTTP130NIOHTTPServerRequestAggregatorC11channelRead7context4datay7NIOCore21ChannelHandlerContextC_AG6NIOAnyVtF
What are these?
FNV24: [VBN8]
import NIOHTTP1
final class NIOHTTPServerRequestAggregator
A ChannelInboundHandler
that handles HTTP chunked HTTPServerRequestPart
messages by aggregating individual message chunks into a single NIOHTTPServerRequestFull
.
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.
struct NIOAny
NIOAny
is an opaque container for values of any type, similar to Swift’s builtin Any
type. Contrary to Any
the overhead of NIOAny
depends on the the type of the wrapped value. Certain types that are important for the performance of a SwiftNIO application like ByteBuffer
, FileRegion
and AddressEnvelope<ByteBuffer>
can be expected to be wrapped almost without overhead. All others will have similar performance as if they were passed as an Any
as NIOAny
just like Any
will contain them within an existential container.
init(maxContentLength: Int, closeOnExpectationFailed: Bool = false)
func handlerAdded(context: ChannelHandlerContext)
typealias InboundIn = HTTPServerRequestPart
typealias InboundOut = NIOHTTPServerRequestFull
typealias OutboundOut = HTTPServerResponsePart