Package com.luciad.net.http
Class HttpRequestOptions
java.lang.Object
com.luciad.net.http.HttpRequestOptions
- All Implemented Interfaces:
AutoCloseable
Options to be sent with an HTTP request.
This is a collection of HttpHeader
s and UriQueryParameter
s. An HttpRequestOptions
instance is built through an HttpResponse.Builder
.
- Since:
- 2023.0
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns anHttpRequestOptions
builder that has all properties of thisHttpRequestOptions
.void
close()
protected void
finalize()
List
<@NotNull HttpHeader> Returns the HTTP headers for this request options instance.List
<@NotNull UriQueryParameter> Returns the query parameters for this request options instance.static HttpRequestOptions.Builder
Creates a newHttpRequestOptions
builder.
-
Constructor Details
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
newBuilder
Creates a newHttpRequestOptions
builder.- Returns:
- a new
HttpRequestOptions
builder.
-
asBuilder
Returns anHttpRequestOptions
builder that has all properties of thisHttpRequestOptions
.- Returns:
- an
HttpRequestOptions
builder that has all properties of thisHttpRequestOptions
.
-
getHeaders
Returns the HTTP headers for this request options instance.- Returns:
- the HTTP headers for this request options instance.
-
getQueryParameters
Returns the query parameters for this request options instance.- Returns:
- the query parameters for this request options instance.
-