| Package | Description |
|---|---|
| com.azure.core.http |
Package containing HTTP abstractions between the AnnotationParser, RestProxy, and HTTP client.
|
| com.azure.core.http.policy |
Package containing HttpPipelinePolicy interface and its implementations.
|
| com.azure.core.http.rest |
Package containing REST-related APIs.
|
| com.azure.core.util.serializer |
Package containing interfaces describing serialization and deserialization contract.
|
| Modifier and Type | Method and Description |
|---|---|
abstract HttpHeaders |
HttpResponse.getHeaders()
Get all response headers.
|
HttpHeaders |
HttpRequest.getHeaders()
Get the request headers.
|
HttpHeaders |
HttpHeaders.put(String name,
String value)
Sets a
header with the given name and value. |
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
HttpRequest.setHeaders(HttpHeaders headers)
Set the request headers.
|
| Constructor and Description |
|---|
HttpRequest(HttpMethod httpMethod,
URL url,
HttpHeaders headers,
Flux<ByteBuffer> body)
Create a new HttpRequest instance.
|
| Constructor and Description |
|---|
AddHeadersPolicy(HttpHeaders headers)
Creates a AddHeadersPolicy.
|
| Modifier and Type | Method and Description |
|---|---|
HttpHeaders |
SimpleResponse.getHeaders()
Gets the headers from the HTTP response.
|
HttpHeaders |
ResponseBase.getHeaders()
Gets the headers from the HTTP response.
|
HttpHeaders |
Response.getHeaders()
Gets the headers from the HTTP response.
|
HttpHeaders |
PagedResponseBase.getHeaders()
Gets the headers from the HTTP response.
|
| 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. |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
JacksonAdapter.deserialize(HttpHeaders headers,
Type deserializedHeadersType) |
<T> T |
SerializerAdapter.deserialize(HttpHeaders headers,
Type type)
Deserialize the provided headers returned from a REST API to an entity instance declared as the model to hold
'Matching' headers.
|
static SerializerEncoding |
SerializerEncoding.fromHeaders(HttpHeaders headers)
Determines the serializer encoding to use based on the Content-Type header.
|
Copyright © 2020 Microsoft Corporation. All rights reserved.