THeaders - The deserialized type of the response headers.TBody - The deserialized type of the response body.public class RestResponse<THeaders,TBody> extends Object
| Constructor and Description |
|---|
RestResponse(HttpRequest request,
int statusCode,
THeaders headers,
Map<String,String> rawHeaders,
TBody body)
Create a new RestResponse object.
|
| Modifier and Type | Method and Description |
|---|---|
TBody |
body() |
THeaders |
headers() |
Map<String,String> |
rawHeaders() |
HttpRequest |
request() |
int |
statusCode() |
public RestResponse(HttpRequest request, int statusCode, THeaders headers, Map<String,String> rawHeaders, TBody body)
request - The request which resulted in this RestResponse.statusCode - The status code of the HTTP response.headers - The deserialized headers of the HTTP response.rawHeaders - The raw headers of the HTTP response.body - The deserialized body.public HttpRequest request()
public int statusCode()
public THeaders headers()
public Map<String,String> rawHeaders()
public TBody body()
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/