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 |
Package containing core utility classes.
|
com.azure.core.util.serializer |
Package containing interfaces describing serialization and deserialization contract.
|
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
HttpRequest.getHeaders()
Get the request headers.
|
abstract HttpHeaders |
HttpResponse.getHeaders()
Get all response headers.
|
HttpHeaders |
HttpHeaders.put(String name,
String value)
Deprecated.
Use
HttpHeaders.set(String, String) instead. |
HttpHeaders |
HttpHeaders.set(String name,
List<String> values)
Sets a
header with the given name and the list of values provided, such that the given
values will be comma-separated when necessary. |
HttpHeaders |
HttpHeaders.set(String name,
String value)
Sets a
header with the given name and value. |
HttpHeaders |
HttpHeaders.setAll(Map<String,List<String>> headers)
Sets all provided header key/values pairs into this HttpHeaders instance.
|
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 |
Response.getHeaders()
Gets the headers from the HTTP response.
|
HttpHeaders |
ResponseBase.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 |
---|---|
static HttpHeaders |
CoreUtils.createHttpHeadersFromClientOptions(ClientOptions clientOptions)
Creates
HttpHeaders from the provided ClientOptions . |
Modifier and Type | Method and Description |
---|---|
static Mono<byte[]> |
FluxUtil.collectBytesFromNetworkResponse(Flux<ByteBuffer> stream,
HttpHeaders headers)
Collects ByteBuffers returned in a network response into a byte array.
|
Modifier and Type | Method and Description |
---|---|
<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.
|
<T> T |
JacksonAdapter.deserialize(HttpHeaders headers,
Type deserializedHeadersType) |
static SerializerEncoding |
SerializerEncoding.fromHeaders(HttpHeaders headers)
Determines the serializer encoding to use based on the Content-Type header.
|
Copyright © 2021 Microsoft Corporation. All rights reserved.