| 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.
|
| 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.
|
| Constructor and Description |
|---|
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. |
Copyright © 2019 Microsoft Corporation. All rights reserved.