context(name:)
Returns the ChannelHandlerContext
that belongs to a ChannelHandler
.
func context(name: String) -> EventLoopFuture<ChannelHandlerContext>
Parameters
- name
the name that was used to add the
ChannelHandler
to theChannelPipeline
before.
Returns
the EventLoopFuture
which will be notified once the the operation completes.