context(name:)

Returns the ChannelHandlerContext that belongs to a ChannelHandler.

ChannelPipeline.swift:504
func context(name: String) -> EventLoopFuture<ChannelHandlerContext>

Parameters

name

the name that was used to add the ChannelHandler to the ChannelPipeline before.

Returns

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