Uses of Enum Class
java.net.http.HttpClient.Version
Packages that use HttpClient.Version
-
Uses of HttpClient.Version in java.net.http
Methods in java.net.http that return HttpClient.VersionModifier and TypeMethodDescriptionstatic HttpClient.Version
Returns the enum constant of this class with the specified name.static HttpClient.Version[]
HttpClient.Version.values()
Returns an array containing the constants of this enum class, in the order they are declared.abstract HttpClient.Version
HttpClient.version()
Returns the preferred HTTP protocol version for this client.HttpResponse.ResponseInfo.version()
Provides the response protocol version.HttpResponse.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.VersionModifier and TypeMethodDescriptionabstract Optional<HttpClient.Version>
HttpRequest.version()
Returns anOptional
containing the HTTP protocol version that will be requested for thisHttpRequest
.Methods in java.net.http with parameters of type HttpClient.VersionModifier and TypeMethodDescriptionHttpClient.Builder.version
(HttpClient.Version version) Requests a specific HTTP protocol version where possible.HttpRequest.Builder.version
(HttpClient.Version version) Sets the preferredHttpClient.Version
for this request.