HttpVersion

enum HttpVersion : ProtocolMessageEnum
HTTP versions known to this protocol.
Protobuf enum elide.http.HttpVersion

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
HTTP 1.0.
HTTP_1_0 = 1;
Link copied to clipboard
HTTP 1.1.
HTTP_1_1 = 2;
Link copied to clipboard
HTTP 2.0.
HTTP_2_0 = 3;
Link copied to clipboard
HTTP 3.0.
HTTP_3_0 = 4;
Link copied to clipboard
Unspecified HTTP version; this indicates a forward-incompatible value and should not be used by regular code.
UNSPECIFIED_HTTP_VERSION = 0;

Functions

Link copied to clipboard
open fun forNumber(value: Int): HttpVersion
Link copied to clipboard
fun getDescriptor(): Descriptors.EnumDescriptor
Link copied to clipboard
fun getDescriptorForType(): Descriptors.EnumDescriptor
Link copied to clipboard
fun getNumber(): Int
Link copied to clipboard
fun getValueDescriptor(): Descriptors.EnumValueDescriptor
Link copied to clipboard
open fun internalGetValueMap(): Internal.EnumLiteMap<HttpVersion>
Link copied to clipboard
open fun valueOf(desc: Descriptors.EnumValueDescriptor): HttpVersion
open fun valueOf(value: Int): HttpVersion

open fun valueOf(name: String): HttpVersion

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.)

Link copied to clipboard
open fun values(): Array<HttpVersion>

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.