Uses of Class
com.azure.core.http.HttpHeaders
-
Packages that use HttpHeaders 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. -
-
Uses of HttpHeaders in com.azure.core.http
Methods in com.azure.core.http that return HttpHeaders Modifier and Type Method Description HttpHeaders
HttpHeaders. add(String 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.HttpHeaders
HttpRequest. getHeaders()
Get the request headers.abstract HttpHeaders
HttpResponse. getHeaders()
Get all response headers.HttpHeaders
HttpHeaders. put(String name, String value)
Deprecated.Useset(String, String)
instead.HttpHeaders
HttpHeaders. set(String name, String value)
Sets aheader
with the given name and value.HttpHeaders
HttpHeaders. set(String 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.HttpHeaders
HttpHeaders. setAll(Map<String,List<String>> headers)
Sets all provided header key/values pairs into this HttpHeaders instance.Methods in com.azure.core.http with parameters of type HttpHeaders Modifier and Type Method Description HttpRequest
HttpRequest. setHeaders(HttpHeaders headers)
Set the request headers.Constructors in com.azure.core.http with parameters of type HttpHeaders Constructor Description HttpRequest(HttpMethod httpMethod, URL url, HttpHeaders headers, Flux<ByteBuffer> body)
Create a new HttpRequest instance. -
Uses of HttpHeaders in com.azure.core.http.policy
Constructors in com.azure.core.http.policy with parameters of type HttpHeaders Constructor Description AddHeadersPolicy(HttpHeaders headers)
Creates a AddHeadersPolicy. -
Uses of HttpHeaders in com.azure.core.http.rest
Methods in com.azure.core.http.rest that return HttpHeaders Modifier and Type Method Description HttpHeaders
PagedResponseBase. 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
SimpleResponse. getHeaders()
Gets the headers from the HTTP response.Constructors in com.azure.core.http.rest with parameters of type HttpHeaders Constructor Description PagedResponseBase(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)
Creates aStreamResponse
. -
Uses of HttpHeaders in com.azure.core.util
Methods in com.azure.core.util that return HttpHeaders Modifier and Type Method Description static HttpHeaders
CoreUtils. createHttpHeadersFromClientOptions(ClientOptions clientOptions)
CreatesHttpHeaders
from the providedClientOptions
.Methods in com.azure.core.util with parameters of type HttpHeaders Modifier and Type Method Description static 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
Methods in com.azure.core.util.serializer with parameters of type HttpHeaders Modifier and Type Method 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.
-