addHTTPClientHandlers(position:leftOverBytesStrategy:)

Configure a ChannelPipeline for use as a HTTP client.

HTTPPipelineSetup.swift:44
func addHTTPClientHandlers(position: Position = .last, leftOverBytesStrategy: RemoveAfterUpgradeStrategy = .dropBytes) -> EventLoopFuture<Void>

Parameters

position

The position in the ChannelPipeline where to add the HTTP client handlers. Defaults to .last.

leftOverBytesStrategy

The strategy to use when dealing with leftover bytes after removing the HTTPDecoder from the pipeline.

Returns

An EventLoopFuture that will fire when the pipeline is configured.