HTTP Client and WebSocket APIs
-
static enum
The HTTP protocol version.
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Returns the preferred HTTP protocol version for this client.
HttpResponse.ResponseInfo.version()
Provides the response protocol version.
Returns the HTTP protocol version that was used for this response.
Returns an Optional
containing the HTTP protocol version that
will be requested for this HttpRequest
.
Requests a specific HTTP protocol version where possible.