Uses of Class
java.net.http.HttpClient.Version
| Package | Description |
|---|---|
| java.net.http |
HTTP Client and WebSocket APIs
|
-
Uses of HttpClient.Version in java.net.http
Methods in java.net.http that return HttpClient.Version Modifier and Type Method Description static HttpClient.VersionHttpClient.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.VersionHttpClient. version()Returns the preferred HTTP protocol version for this client.HttpClient.VersionHttpResponse.ResponseInfo. version()Provides the response protocol version.HttpClient.VersionHttpResponse. version()Returns the HTTP protocol version that was used for this response.Methods in java.net.http that return types with arguments of type HttpClient.Version Modifier and Type Method Description abstract Optional<HttpClient.Version>HttpRequest. version()Returns anOptionalcontaining the HTTP protocol version that will be requested for thisHttpRequest.Methods in java.net.http with parameters of type HttpClient.Version Modifier and Type Method Description HttpClient.BuilderHttpClient.Builder. version(HttpClient.Version version)Requests a specific HTTP protocol version where possible.HttpRequest.BuilderHttpRequest.Builder. version(HttpClient.Version version)Sets the preferredHttpClient.Versionfor this request.