channelInitializer(_:)

Initialize the connected PipeChannel with initializer. The most common task in initializer is to add ChannelHandlers to the ChannelPipeline.

Bootstrap.swift:2295
@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 PipeChannels because sendfile only works on sockets.