RemoveAfterUpgradeStrategy

public enum RemoveAfterUpgradeStrategy

Strategy to use when a HTTPDecoder is removed from a pipeline after a HTTP upgrade was detected.

  • Forward all the remaining bytes that are currently buffered in the deccoder to the next handler in the pipeline.

    Declaration

    Swift

    case forwardBytes
  • Fires a ByteToMessageDecoder.leftoverDataWhenDone error through the pipeline

    Declaration

    Swift

    case fireError
  • Discard all the remaining bytes that are currently buffered in the decoder.

    Declaration

    Swift

    case dropBytes