Package | Description |
---|---|
java.net.http |
High level HTTP API
|
Modifier and Type | Method and Description |
---|---|
static HttpClient.Version |
HttpClient.Version.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpClient.Version[] |
HttpClient.Version.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
abstract HttpClient.Version |
HttpClient.version()
Returns the HTTP protocol version requested for this client.
|
abstract HttpClient.Version |
HttpRequest.version()
Returns the HTTP protocol version that this request will use or used.
|
abstract HttpClient.Version |
HttpResponse.version()
Returns the HTTP protocol version that was used for this response.
|
Modifier and Type | Method and Description |
---|---|
abstract HttpClient.Builder |
HttpClient.Builder.version(HttpClient.Version version)
Requests a specific HTTP protocol version where possible.
|
abstract HttpRequest.Builder |
HttpRequest.Builder.version(HttpClient.Version version)
Overrides the
HttpClient.version() setting for this
request. |
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-04-13-183229.buildd.src