HTTP Client and WebSocket APIs
-
HttpRequest.Builder.copy()
Returns an exact duplicate copy of this Builder
based on
current state.
Sets the request method of this builder to DELETE.
Requests the server to acknowledge the request before sending the
body.
HttpRequest.Builder.GET()
Sets the request method of this builder to GET.
HttpRequest.Builder.HEAD()
Sets the request method of this builder to HEAD.
Adds the given name value pair to the set of headers for this request.
Adds the given name value pairs to the set of headers for this
request.
Sets the request method and request body of this builder to the
given values.
Creates an HttpRequest
builder.
Creates a Builder
whose initial state is copied from an existing
HttpRequest
.
Creates an HttpRequest
builder with the given URI.
Sets the request method of this builder to POST and sets its
request body publisher to the given value.
Sets the request method of this builder to PUT and sets its
request body publisher to the given value.
Sets the given name value pair to the set of headers for this
request.
Sets a timeout for this request.
HttpRequest.Builder.uri(URI uri)
Sets this HttpRequest
's request URI
.