public class RequestOptions extends Object
Experimental: this class is experimental and subject to change in backward incompatible ways.
| Constructor and Description |
|---|
RequestOptions()
Constructs a new RequestOptions instance with default identity functions.
|
| Modifier and Type | Method and Description |
|---|---|
Request |
applyOptions(Request request)
Applies all configured transformations to the given request.
|
RequestOptions |
withAuthorization(String authorization)
Sets the authorization header for the request.
|
RequestOptions |
withUrl(String url)
Sets the URL for the request.
|
RequestOptions |
withUserAgent(String userAgent)
Sets the User-Agent header for the request.
|
public RequestOptions()
public RequestOptions withAuthorization(String authorization)
authorization - The authorization value to be set in the headerpublic RequestOptions withUrl(String url)
url - The URL to be set for the requestpublic RequestOptions withUserAgent(String userAgent)
userAgent - The user agent string to be set in the headerpublic Request applyOptions(Request request)
request - The original request to be transformedCopyright © 2025. All rights reserved.