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