context(name:)

Returns the ChannelHandlerContext for the handler with the given name, if one exists.

ChannelPipeline.swift:1416
func context(name: String) throws -> ChannelHandlerContext

Parameters

name

The name of the handler whose context is being fetched.

Returns

The ChannelHandlerContext associated with the handler.