Package | Description |
---|---|
com.azure.core.http.rest |
Package containing REST-related APIs.
|
Modifier and Type | Method and Description |
---|---|
RequestOptions |
RequestOptions.addHeader(String header,
String value)
Adds a header to the HTTP request.
|
RequestOptions |
RequestOptions.addQueryParam(String parameterName,
String value)
Adds a query parameter to the request URL.
|
RequestOptions |
RequestOptions.addQueryParam(String parameterName,
String value,
boolean encoded)
Adds a query parameter to the request URL, specifying whether the parameter is already encoded.
|
RequestOptions |
RequestOptions.addRequestCallback(Consumer<HttpRequest> requestCallback)
Adds a custom request callback to modify the HTTP request before it's sent by the HttpClient.
|
RequestOptions |
RequestOptions.setBody(BinaryData requestBody)
Sets the body to send as part of the HTTP request.
|
RequestOptions |
RequestOptions.setThrowOnError(boolean throwOnError)
Sets whether or not to throw an exception when an HTTP response with a status code indicating an error
(400 or above) is received.
|
Copyright © 2021 Microsoft Corporation. All rights reserved.