channelInitializer(_:)

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

    Bootstrap.swift:2101
    @preconcurrency func channelInitializer(_ handler: @escaping (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.

    Other members in extension

    Type members

    Instance members

    Show obsolete interfaces (2)

    Hide obsolete interfaces