HTTPRequestDecoder

public final class HTTPRequestDecoder : HTTPDecoder<HTTPServerRequestPart>

A ChannelInboundHandler used to decode HTTP requests. See the documentation on HTTPDecoder for more.

While the HTTPRequestDecoder does not currently have a specific ordering requirement in the ChannelPipeline (unlike HTTPResponseDecoder), it is possible that it will develop one. For that reason, applications should try to ensure that the HTTPRequestDecoder later in the ChannelPipeline than the HTTPResponseEncoder.

Rather than set this up manually, consider using ChannelPipeline.addHTTPServerHandlers.

  • Undocumented

    Declaration

    Swift

    public convenience init()
  • Creates a new instance of HttpRequestDecoder.

    Declaration

    Swift

    public convenience init(leftOverBytesStrategy: RemoveAfterUpgradeStrategy)

    Parameters

    leftOverBytesStrategy

    the strategy to use when removing the decoder from the pipeline and an upgrade was detected