| Package | Description |
|---|---|
| com.azure.core.exception |
Package containing core exception classes.
|
| com.azure.core.http |
Package containing HTTP abstractions between the AnnotationParser, RestProxy, and HTTP client.
|
| com.azure.core.http.rest |
Package containing REST-related APIs.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
HttpRequestException.getRequest() |
| Constructor and Description |
|---|
HttpRequestException(HttpRequest request)
Initializes a new instance of the HttpRequestException class.
|
HttpRequestException(HttpRequest request,
Throwable cause)
Initializes a new instance of the HttpRequestException class.
|
HttpRequestException(String message,
HttpRequest request)
Initializes a new instance of the HttpRequestException class.
|
HttpRequestException(String message,
HttpRequest request,
Throwable cause)
Initializes a new instance of the HttpRequestException class.
|
HttpRequestException(String message,
HttpRequest request,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
Initializes a new instance of the HttpRequestException class.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
HttpRequest.copy()
Creates a copy of the request.
|
HttpRequest |
HttpPipelineCallContext.getHttpRequest()
Gets the HTTP request.
|
HttpRequest |
HttpResponse.getRequest()
Get the request which resulted in this response.
|
HttpRequest |
HttpRequest.setBody(byte[] content)
Set the request content.
|
HttpRequest |
HttpRequest.setBody(Flux<ByteBuffer> content)
Set request content.
|
HttpRequest |
HttpRequest.setBody(String content)
Set the request content.
|
HttpRequest |
HttpRequest.setHeader(String name,
String value)
Set a request header, replacing any existing value.
|
HttpRequest |
HttpRequest.setHeaders(HttpHeaders headers)
Set the request headers.
|
HttpRequest |
HttpRequest.setHttpMethod(HttpMethod httpMethod)
Set the request method.
|
HttpRequest |
HttpRequest.setUrl(String url)
Set the target address to send the request to.
|
HttpRequest |
HttpRequest.setUrl(URL url)
Set the target address to send the request to.
|
| Modifier and Type | Method and Description |
|---|---|
Mono<HttpResponse> |
HttpClient.send(HttpRequest request)
Send the provided request asynchronously.
|
Mono<HttpResponse> |
HttpPipeline.send(HttpRequest request)
Wraps the
request in a context and sends it through pipeline. |
Mono<HttpResponse> |
HttpPipeline.send(HttpRequest request,
Context data)
Wraps the request in a context with additional metadata and sends it through the pipeline.
|
HttpPipelineCallContext |
HttpPipelineCallContext.setHttpRequest(HttpRequest request)
Sets the HTTP request object in the context.
|
| Constructor and Description |
|---|
HttpResponse(HttpRequest request) |
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
Response.getRequest()
Gets the HTTP request which resulted in this response.
|
HttpRequest |
ResponseBase.getRequest()
Gets The request which resulted in this
ResponseBase. |
HttpRequest |
SimpleResponse.getRequest()
Gets the request which resulted in this
SimpleResponse. |
HttpRequest |
PagedResponseBase.getRequest() |
| Modifier and Type | Method and Description |
|---|---|
Mono<HttpResponse> |
RestProxy.send(HttpRequest request,
Context contextData)
Send the provided request asynchronously, applying any request policies provided to the HttpClient instance.
|
| Constructor and Description |
|---|
PagedResponseBase(HttpRequest request,
int statusCode,
HttpHeaders headers,
List<T> items,
String continuationToken,
H deserializedHeaders)
Creates a new instance of the PagedResponseBase type.
|
PagedResponseBase(HttpRequest request,
int statusCode,
HttpHeaders headers,
Page<T> page,
H deserializedHeaders)
Creates a new instance of the PagedResponseBase type.
|
ResponseBase(HttpRequest request,
int statusCode,
HttpHeaders headers,
T value,
H deserializedHeaders)
Creates a
ResponseBase. |
SimpleResponse(HttpRequest request,
int statusCode,
HttpHeaders headers,
T value)
Creates a
SimpleResponse. |
StreamResponse(HttpRequest request,
int statusCode,
HttpHeaders headers,
Flux<ByteBuffer> value)
Creates a
StreamResponse. |
Copyright © 2020 Microsoft Corporation. All rights reserved.