Uses of Class
com.azure.core.http.HttpHeaders
Package
Description
Package containing HTTP abstractions between the AnnotationParser, RestProxy, and HTTP client.
Package containing HttpPipelinePolicy interface and its implementations.
Package containing REST-related APIs.
Package containing core utility classes.
Package containing interfaces describing serialization and deserialization contract.
-
Uses of HttpHeaders in com.azure.core.http
Modifier and TypeMethodDescriptionHttpHeaders.add
(HttpHeaderName name, String value) Adds aheader
with the given name and value if a header with that name doesn't already exist, otherwise adds thevalue
to the existing header.Deprecated.HttpRequest.getHeaders()
Get the request headers.abstract HttpHeaders
HttpResponse.getHeaders()
Get all response headers.Deprecated.Useset(HttpHeaderName, String)
instead.HttpHeaders.set
(HttpHeaderName name, String value) Sets aheader
with the given name and value.HttpHeaders.set
(HttpHeaderName name, List<String> values) Sets aheader
with the given name and the list of values provided, such that the given values will be comma-separated when necessary.Deprecated.Useset(HttpHeaderName, String)
as it provides better performance.Deprecated.Useset(HttpHeaderName, List)
as it provides better performance.Sets all provided header key/values pairs into this HttpHeaders instance.HttpHeaders.setAllHttpHeaders
(HttpHeaders headers) Sets all headers from the passedheaders
into thisHttpHeaders
.Modifier and TypeMethodDescriptionHttpHeaders.setAllHttpHeaders
(HttpHeaders headers) Sets all headers from the passedheaders
into thisHttpHeaders
.HttpRequest.setHeaders
(HttpHeaders headers) Set the request headers.ModifierConstructorDescriptionHttpRequest
(HttpMethod httpMethod, URL url, HttpHeaders headers) Create a new HttpRequest instance.HttpRequest
(HttpMethod httpMethod, URL url, HttpHeaders headers, BinaryData body) Create a new HttpRequest instance.HttpRequest
(HttpMethod httpMethod, URL url, HttpHeaders headers, Flux<ByteBuffer> body) Create a new HttpRequest instance. -
Uses of HttpHeaders in com.azure.core.http.policy
-
Uses of HttpHeaders in com.azure.core.http.rest
Modifier and TypeMethodDescriptionPagedResponseBase.getHeaders()
Gets the headers from the HTTP response.Response.getHeaders()
Gets the headers from the HTTP response.ResponseBase.getHeaders()
Gets the headers from the HTTP response.SimpleResponse.getHeaders()
Gets the headers from the HTTP response.ModifierConstructorDescriptionPagedResponseBase
(HttpRequest request, int statusCode, HttpHeaders headers, Page<T> page, H deserializedHeaders) Creates a new instance of the PagedResponseBase type.PagedResponseBase
(HttpRequest request, int statusCode, HttpHeaders headers, List<T> items, String continuationToken, H deserializedHeaders) Creates a new instance of the PagedResponseBase type.ResponseBase
(HttpRequest request, int statusCode, HttpHeaders headers, T value, H deserializedHeaders) Creates aResponseBase
.SimpleResponse
(HttpRequest request, int statusCode, HttpHeaders headers, T value) Creates aSimpleResponse
.StreamResponse
(HttpRequest request, int statusCode, HttpHeaders headers, Flux<ByteBuffer> value) Deprecated. -
Uses of HttpHeaders in com.azure.core.util
Modifier and TypeMethodDescriptionstatic HttpHeaders
CoreUtils.createHttpHeadersFromClientOptions
(ClientOptions clientOptions) CreatesHttpHeaders
from the providedClientOptions
.Modifier and TypeMethodDescriptionstatic Mono<byte[]>
FluxUtil.collectBytesFromNetworkResponse
(Flux<ByteBuffer> stream, HttpHeaders headers) Collects ByteBuffers returned in a network response into a byte array. -
Uses of HttpHeaders in com.azure.core.util.serializer
Modifier and TypeMethodDescription<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.
add(HttpHeaderName, String)
as it provides better performance.