| Package | Description |
|---|---|
| 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.
|
| com.microsoft.rest.v2.protocol |
The package contains classes that interfaces defining the behaviors
of the necessary components of a Rest Client.
|
| Modifier and Type | Method and Description |
|---|---|
abstract HttpHeaders |
HttpResponse.headers()
Get all the headers on this HTTP response.
|
HttpHeaders |
HttpRequest.headers()
Get the headers for this request.
|
HttpHeaders |
BufferedHttpResponse.headers() |
HttpHeaders |
HttpHeaders.set(String headerName,
String headerValue)
Set the value for the header named headerName,
discarding any value previously added for that header.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
HttpRequest.withHeaders(HttpHeaders headers)
Set the headers for this request.
|
| Constructor and Description |
|---|
HttpRequest(String callerMethod,
HttpMethod httpMethod,
URL url,
HttpHeaders headers,
io.reactivex.Flowable<ByteBuffer> body,
HttpResponseDecoder responseDecoder)
Create a new HttpRequest object.
|
| Constructor and Description |
|---|
AddHeadersPolicyFactory(HttpHeaders headers)
Creates a AddHeadersPolicyFactory which adds headers from this HttpHeaders object to the request.
|
| Modifier and Type | Method and Description |
|---|---|
static SerializerEncoding |
SerializerEncoding.fromHeaders(HttpHeaders headers)
Determines the serializer encoding to use based on the Content-Type header.
|
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/