context(handler:)

    Returns the ChannelHandlerContext that belongs to a ChannelHandler.

    ChannelPipeline.swift:456
    func context(handler: ChannelHandler) -> EventLoopFuture<ChannelHandlerContext>

    Parameters

    handler

    the ChannelHandler for which the ChannelHandlerContext should be returned

    Returns

    the EventLoopFuture which will be notified once the the operation completes.

    Other members in extension

    Types

    • enum Position

      A Position within the ChannelPipeline used to insert handlers into the ChannelPipeline.

    • struct SynchronousOperations

      A view of a ChannelPipeline which may be used to invoke synchronous operations.

    Type members

    • init(channel: Channel)

      Create ChannelPipeline for a given Channel. This method should never be called by the end-user directly: it is only intended for use with custom Channel implementations. Users should always use channel.pipeline to access the ChannelPipeline for a Channel.

    Instance members

    Show obsolete interfaces (3)

    Hide obsolete interfaces