channelInitializer(_:)
Initialize the connected PipeChannel
with initializer
. The most common task in initializer is to add ChannelHandler
s to the ChannelPipeline
.
@preconcurrency func channelInitializer(_ handler: @escaping (any Channel) -> EventLoopFuture<Void>) -> Self
Parameters
- handler
A closure that initializes the provided
Channel
.
The connected Channel
will operate on ByteBuffer
as inbound and outbound messages. Please note that IOData.fileRegion
is not supported for PipeChannel
s because sendfile
only works on sockets.