| Package | Description |
|---|---|
| com.microsoft.rest.v2 |
The package contains the runtime classes required for AutoRest generated
clients to compile and function.
|
| com.microsoft.rest.v2.http |
This package contains the HTTP abstractions between the AnnotationParser's RestProxy and whatever
HTTP client we choose to use.
|
| com.microsoft.rest.v2.policy |
Code related to creating proxy implementations of interfaces that have been generated from
Swagger specifications.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
RestResponse.request() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
RestProxy.handleAsyncHttpResponse(HttpRequest httpRequest,
io.reactivex.Single<HttpResponse> asyncHttpResponse,
SwaggerMethodParser methodParser,
Type returnType) |
Object |
RestProxy.handleRestReturnType(HttpRequest httpRequest,
io.reactivex.Single<HttpResponse> asyncHttpResponse,
SwaggerMethodParser methodParser,
Type returnType)
Handle the provided asynchronous HTTP response and return the deserialized value.
|
protected Object |
RestProxy.handleResumeOperation(HttpRequest httpRequest,
OperationDescription operationDescription,
SwaggerMethodParser methodParser,
Type returnType) |
io.reactivex.Single<HttpResponse> |
RestProxy.sendHttpRequestAsync(HttpRequest request)
Send the provided request asynchronously, applying any request policies provided to the HttpClient instance.
|
| Constructor and Description |
|---|
BodyResponse(HttpRequest request,
int statusCode,
Map<String,String> rawHeaders,
TBody body)
Creates a new BodyResponse object.
|
OperationDescription(String fullyQualifiedMethodName,
Serializable pollStrategyData,
HttpRequest originalHttpRequest)
Create a new Substitution.
|
RestResponse(HttpRequest request,
int statusCode,
THeaders headers,
Map<String,String> rawHeaders,
TBody body)
Create a new RestResponse object.
|
StreamResponse(HttpRequest request,
int statusCode,
Map<String,String> rawHeaders,
io.reactivex.Flowable<ByteBuffer> body)
Creates a StreamResponse.
|
VoidResponse(HttpRequest request,
int statusCode,
Map<String,String> rawHeaders)
Creates a VoidResponse.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
HttpRequest.buffer()
Performs a deep clone of this HTTP request.
|
HttpRequest |
HttpResponse.request() |
HttpRequest |
HttpRequest.withBody(byte[] body)
Set the body of this HTTP request, automatically setting the Content-Length header based on the given body's length.
|
HttpRequest |
HttpRequest.withBody(io.reactivex.Flowable<ByteBuffer> body)
Set the body of this HTTP request, leaving request headers unmodified.
|
HttpRequest |
HttpRequest.withBody(String body)
Set the body of this HTTP request.
|
HttpRequest |
HttpRequest.withCallerMethod(String callerMethod)
Set the caller method for this request.
|
HttpRequest |
HttpRequest.withContext(Context context) |
HttpRequest |
HttpRequest.withHeader(String headerName,
String headerValue)
Add the provided headerName and headerValue to the list of headers for this request.
|
HttpRequest |
HttpRequest.withHeaders(HttpHeaders headers)
Set the headers for this request.
|
HttpRequest |
HttpRequest.withHttpMethod(HttpMethod httpMethod)
Set the HTTP method that this request will use.
|
HttpRequest |
HttpRequest.withUrl(URL url)
Set the URL that this request will be sent to.
|
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<HttpResponse> |
NettyClient.sendRequestAsync(HttpRequest request) |
io.reactivex.Single<HttpResponse> |
HttpPipeline.sendRequestAsync(HttpRequest httpRequest)
Send the provided HTTP request using this HttpPipeline's HttpClient after it has passed through
each of the RequestPolicies that have been configured on this HttpPipeline.
|
abstract io.reactivex.Single<HttpResponse> |
HttpClient.sendRequestAsync(HttpRequest request)
Send the provided request asynchronously, applying any request policies provided to the HttpClient instance.
|
HttpResponse |
HttpResponse.withRequest(HttpRequest request)
Sets the request on this HttpResponse.
|
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<HttpResponse> |
RequestPolicy.sendAsync(HttpRequest request)
Sends an HTTP request as an asynchronous operation.
|
io.reactivex.Single<HttpResponse> |
HttpClientRequestPolicyAdapter.sendAsync(HttpRequest request) |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/