H - The deserialized type of the response headers.T - The deserialized type of the response value, available from ResponseBase.value().public class ResponseBase<H,T> extends Object implements Response<T>
| Constructor and Description |
|---|
ResponseBase(HttpRequest request,
int statusCode,
HttpHeaders headers,
T value,
H deserializedHeaders)
Create ResponseBase.
|
| Modifier and Type | Method and Description |
|---|---|
H |
deserializedHeaders()
Get the headers from the HTTP response, transformed into the header type H.
|
HttpHeaders |
headers()
Get the headers from the HTTP response.
|
HttpRequest |
request()
Get the HTTP request which resulted in this response.
|
int |
statusCode()
Get the HTTP response status code.
|
T |
value() |
public ResponseBase(HttpRequest request, int statusCode, HttpHeaders headers, T value, H deserializedHeaders)
request - the request which resulted in this responsestatusCode - the status code of the HTTP responseheaders - the headers of the HTTP responsedeserializedHeaders - the deserialized headers of the HTTP responsevalue - the deserialized valuepublic HttpRequest request()
Responsepublic int statusCode()
statusCode in interface Response<T>public HttpHeaders headers()
public H deserializedHeaders()
Copyright © 2019 Microsoft Corporation. All rights reserved.