NIOInformationalResponseStrategy

public struct NIOInformationalResponseStrategy : Hashable

Strategy to use when a HTTPDecoder receives an informational HTTP response (1xx except 101)

  • Drop the informational response and only forward the “real” response

    Declaration

    Swift

    public static let drop: NIOInformationalResponseStrategy
  • Forward the informational response and then forward the “real” response. This will result in multiple head before an end is emitted.

    Declaration

    Swift

    public static let forward: NIOInformationalResponseStrategy