Enum ProxyProtocolSupportType

java.lang.Object
java.lang.Enum<ProxyProtocolSupportType>
reactor.netty.http.server.ProxyProtocolSupportType
All Implemented Interfaces:
Serializable, Comparable<ProxyProtocolSupportType>, java.lang.constant.Constable

public enum ProxyProtocolSupportType extends Enum<ProxyProtocolSupportType>
Proxy protocol support type, this enum class defines how the HttpServer handles proxy protocol.
Author:
aftersss
  • Enum Constant Details

    • AUTO

      public static final ProxyProtocolSupportType AUTO
      Each connection of the same HttpServer will auto detect whether there is proxy protocol. The HttpServer can support multiple clients(or reverse proxy server like HaProxy) with and without proxy protocol enabled at the same time.
    • ON

      public static final ProxyProtocolSupportType ON
      Enable support for the "HAProxy proxy protocol" for deriving information about the address of the remote peer.
    • OFF

      public static final ProxyProtocolSupportType OFF
      Disable the proxy protocol support.
  • Method Details

    • values

      public static ProxyProtocolSupportType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ProxyProtocolSupportType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null