| Modifier and Type | Field and Description |
|---|---|
| private HttpRequest. | |
| private Duration | |
| private boolean | |
| private HttpHeadersBuilder | |
| private String | |
| private final Map | |
| private static final Set | |
| private URI | |
| private volatile Optional |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv HttpRequest. | |
| public HttpRequest | |
| public HttpRequestImpl | |
| private void | |
| pack-priv static void | |
| public HttpRequestBuilderImpl | copy()
Implements java. Returns an exact duplicate copy of this |
| public static Map | |
| public static Map | |
| public HttpRequest. | DELETE()
Implements java. Sets the request method of this builder to DELETE. |
| public HttpRequestBuilderImpl | expectContinue(boolean enable)
Implements java. Requests the server to acknowledge the request before sending the body. |
| pack-priv boolean | |
| public HttpRequest. | GET()
Implements java. Sets the request method of this builder to GET. |
| public HttpRequest. | HEAD()
Overrides default java. Sets the request method of this builder to HEAD. |
| public HttpRequestBuilderImpl | header(String name, String value)
Implements java. Adds the given name value pair to the set of headers for this request. |
| public HttpRequestBuilderImpl | headers(String... params)
Implements java. Adds the given name value pairs to the set of headers for this request. |
| pack-priv HttpHeadersBuilder | |
| pack-priv String | |
| public HttpRequest. | method(String method, HttpRequest.
Implements java. Sets the request method and request body of this builder to the given values. |
| private HttpRequest. | |
| pack-priv Map | |
| public HttpRequest. | POST(HttpRequest.
Implements java. Sets the request method of this builder to POST and sets its request body publisher to the given value. |
| public HttpRequest. | PUT(HttpRequest.
Implements java. Sets the request method of this builder to PUT and sets its request body publisher to the given value. |
| public HttpRequestBuilderImpl | setHeader(String name, String value)
Implements java. Sets the given name value pair to the set of headers for this request. |
| public <T> HttpRequest. | setOption(HttpOption<T> option, T value)
Overrides default java. Provides request configuration option hints modeled as key value pairs
to help an |
| public HttpRequest. | timeout(Duration duration)
Implements java. Sets a timeout for this request. |
| pack-priv Duration | |
| public HttpRequestBuilderImpl | |
| pack-priv URI | |
| public HttpRequestBuilderImpl | version(HttpClient.
Implements java. Sets the preferred |
| pack-priv Optional |
| bodyPublisher | back to summary |
|---|---|
| private HttpRequest. | |
| duration | back to summary |
|---|---|
| private Duration duration | |
| expectContinue | back to summary |
|---|---|
| private boolean expectContinue | |
| headersBuilder | back to summary |
|---|---|
| private HttpHeadersBuilder headersBuilder | |
| method | back to summary |
|---|---|
| private String method | |
| options | back to summary |
|---|---|
| private final Map<HttpOption<?>, Object> options | |
| supportedOptions | back to summary |
|---|---|
| private static final Set<HttpOption<?>> supportedOptions | |
| uri | back to summary |
|---|---|
| private URI uri | |
| version | back to summary |
|---|---|
| private volatile Optional<HttpClient. | |
| HttpRequestBuilderImpl | back to summary |
|---|---|
| public HttpRequestBuilderImpl(URI uri) | |
| HttpRequestBuilderImpl | back to summary |
|---|---|
| public HttpRequestBuilderImpl() | |
| bodyPublisher | back to summary |
|---|---|
| pack-priv HttpRequest. | |
| build | back to summary |
|---|---|
| public HttpRequest build() Implements java. Doc from java. Builds and returns an
| |
| buildForWebSocket | back to summary |
|---|---|
| public HttpRequestImpl buildForWebSocket() | |
| checkNameAndValue | back to summary |
|---|---|
| private void checkNameAndValue(String name, String value) | |
| checkURI | back to summary |
|---|---|
| pack-priv static void checkURI(URI uri) | |
| copy | back to summary |
|---|---|
| public HttpRequestBuilderImpl copy() Implements java. Doc from java. Returns an exact duplicate copy of this
| |
| copySupportedOptions | back to summary |
|---|---|
| public static Map | |
| copySupportedOptions | back to summary |
|---|---|
| public static Map | |
| DELETE | back to summary |
|---|---|
| public HttpRequest. Implements java. Doc from java. Sets the request method of this builder to DELETE.
| |
| expectContinue | back to summary |
|---|---|
| public HttpRequestBuilderImpl expectContinue(boolean enable) Implements java. Doc from java. Requests the server to acknowledge the request before sending the
body. This is disabled by default. If enabled, the server is
requested to send an error response or a
| |
| expectContinue | back to summary |
|---|---|
| pack-priv boolean expectContinue() | |
| GET | back to summary |
|---|---|
| public HttpRequest. Implements java. Doc from java. Sets the request method of this builder to GET. This is the default.
| |
| HEAD | back to summary |
|---|---|
| public HttpRequest. Overrides default java. Doc from java. Sets the request method of this builder to HEAD.
| |
| header | back to summary |
|---|---|
| public HttpRequestBuilderImpl header(String name, String value) Implements java. Doc from java. Adds the given name value pair to the set of headers for this request. The given value is added to the list of values for that name.
| |
| headers | back to summary |
|---|---|
| public HttpRequestBuilderImpl headers(String... params) Implements java. Doc from java. Adds the given name value pairs to the set of headers for this
request. The supplied
| |
| headersBuilder | back to summary |
|---|---|
| pack-priv HttpHeadersBuilder headersBuilder() | |
| method | back to summary |
|---|---|
| pack-priv String method() | |
| method | back to summary |
|---|---|
| public HttpRequest. Implements java. Doc from java. Sets the request method and request body of this builder to the given values.
| |
| method0 | back to summary |
|---|---|
| private HttpRequest. | |
| options | back to summary |
|---|---|
| pack-priv Map | |
| POST | back to summary |
|---|---|
| public HttpRequest. Implements java. Doc from java. Sets the request method of this builder to POST and sets its request body publisher to the given value.
| |
| PUT | back to summary |
|---|---|
| public HttpRequest. Implements java. Doc from java. Sets the request method of this builder to PUT and sets its request body publisher to the given value.
| |
| setHeader | back to summary |
|---|---|
| public HttpRequestBuilderImpl setHeader(String name, String value) Implements java. Doc from java. Sets the given name value pair to the set of headers for this request. This overwrites any previously set values for name.
| |
| setOption | back to summary |
|---|---|
| public <T> HttpRequest. Overrides default java. Doc from java. Provides request configuration option hints modeled as key value pairs
to help an An
If this method is invoked twice for the same request option, any value previously provided to this builder for the
corresponding option is replaced by the new value.
If
| |
| timeout | back to summary |
|---|---|
| public HttpRequest. Implements java. Doc from java. Sets a timeout for this request. If the response is not received
within the specified timeout then an
| |
| timeout | back to summary |
|---|---|
| pack-priv Duration timeout() | |
| uri | back to summary |
|---|---|
| public HttpRequestBuilderImpl uri(URI uri) Implements java. Doc from java. Sets this
| |
| uri | back to summary |
|---|---|
| pack-priv URI uri() | |
| version | back to summary |
|---|---|
| public HttpRequestBuilderImpl version(HttpClient. Implements java. Doc from java. Sets the preferred The corresponding
| |
| version | back to summary |
|---|---|
| pack-priv Optional | |