Package burp.api.montoya.http
Enum Class HttpMode
- All Implemented Interfaces:
Serializable
,Comparable<HttpMode>
,Constable
HTTP modes when sending a request.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionUse the HTTP protocol specified by the serverUse HTTP 1 protocol for the connection.
Will error if server is HTTP 2 only.Use HTTP 2 protocol for the connection.
Will error if server is HTTP 1 only.Force HTTP 2 and ignore ALPN.
Will not error if server is HTTP 1 only. -
Method Summary
-
Enum Constant Details
-
AUTO
Use the HTTP protocol specified by the server -
HTTP_1
Use HTTP 1 protocol for the connection.
Will error if server is HTTP 2 only. -
HTTP_2
Use HTTP 2 protocol for the connection.
Will error if server is HTTP 1 only. -
HTTP_2_IGNORE_ALPN
Force HTTP 2 and ignore ALPN.
Will not error if server is HTTP 1 only.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-