containsHandler(type:)

Returns if the ChannelHandler of the given type is contained in the pipeline.

ChannelPipeline.swift:562
@preconcurrency func containsHandler<Handler>(type: Handler.Type) -> EventLoopFuture<Void> where Handler : ChannelHandler

Parameters

type

The type of the handler.

Returns

An EventLoopFuture that is succeeded if a handler of the given type is contained in the pipeline. Otherwise the future will be failed with an error.