Enum Class HttpMode

java.lang.Object
java.lang.Enum<HttpMode>
burp.api.montoya.http.HttpMode
All Implemented Interfaces:
Serializable, Comparable<HttpMode>, Constable

public enum HttpMode extends Enum<HttpMode>
HTTP modes when sending a request.
  • Enum Constant Details

    • AUTO

      public static final HttpMode AUTO
      Use the HTTP protocol specified by the server
    • HTTP_1

      public static final HttpMode HTTP_1
      Use HTTP 1 protocol for the connection.
      Will error if server is HTTP 2 only.
    • HTTP_2

      public static final HttpMode HTTP_2
      Use HTTP 2 protocol for the connection.
      Will error if server is HTTP 1 only.
    • HTTP_2_IGNORE_ALPN

      public static final HttpMode HTTP_2_IGNORE_ALPN
      Force HTTP 2 and ignore ALPN.
      Will not error if server is HTTP 1 only.
  • Method Details

    • values

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

      public static HttpMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null