public final class HttpRequestOptions extends Object implements AutoCloseable
This is a collection of HttpHeader
s and UriQueryParameter
s. An HttpRequestOptions
instance is built through an HttpResponse.Builder
.
Modifier and Type | Class and Description |
---|---|
static class |
HttpRequestOptions.Builder
Builder for the HttpRequestOptions class. |
Constructor and Description |
---|
HttpRequestOptions(HttpRequestOptions other) |
Modifier and Type | Method and Description |
---|---|
HttpRequestOptions.Builder |
asBuilder()
Returns an
HttpRequestOptions builder that has all properties of this HttpRequestOptions . |
void |
close() |
protected void |
finalize() |
List<HttpHeader> |
getHeaders()
Returns the HTTP headers for this request options instance.
|
List<UriQueryParameter> |
getQueryParameters()
Returns the query parameters for this request options instance.
|
static HttpRequestOptions.Builder |
newBuilder()
Creates a new
HttpRequestOptions builder. |
public HttpRequestOptions(@NotNull HttpRequestOptions other)
public void close()
close
in interface AutoCloseable
@NotNull public static HttpRequestOptions.Builder newBuilder()
HttpRequestOptions
builder.HttpRequestOptions
builder.@NotNull public HttpRequestOptions.Builder asBuilder()
HttpRequestOptions
builder that has all properties of this HttpRequestOptions
.HttpRequestOptions
builder that has all properties of this HttpRequestOptions
.@NotNull public List<HttpHeader> getHeaders()
@NotNull public List<UriQueryParameter> getQueryParameters()