addHandler(_:name:position:)

Add a handler to the pipeline.

ChannelPipeline.swift:1260

This declaration is deprecated: Use ChannelPipeline.SynchronousOperations.Position instead

func addHandler(_ handler: ChannelHandler, name: String? = nil, position: ChannelPipeline.Position = .last) throws

Parameters

handler

The handler to add.

name

The name to use for the ChannelHandler when it’s added. If no name is specified the one will be generated.

position

The position in the ChannelPipeline to add handler. Defaults to .last.