Package com.azure.common.http.rest
Interface Response<T>
-
- Type Parameters:
T- The deserialized type of the response content, available fromvalue().
- All Known Subinterfaces:
PagedResponse<T>
- All Known Implementing Classes:
ResponseBase,SimpleResponse,StreamResponse,VoidResponse
public interface Response<T>REST response with a strongly-typed content specified.- See Also:
ResponseBase
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpHeadersheaders()Get the headers from the HTTP response.HttpRequestrequest()Get the HTTP request which resulted in this response.intstatusCode()Get the HTTP response status code.Tvalue()
-
-
-
Method Detail
-
statusCode
int statusCode()
Get the HTTP response status code.- Returns:
- the status code of the HTTP response.
-
headers
HttpHeaders headers()
Get the headers from the HTTP response.- Returns:
- an HttpHeaders instance containing the HTTP response headers.
-
request
HttpRequest request()
Get the HTTP request which resulted in this response.- Returns:
- the HTTP request.
-
value
T value()
- Returns:
- the deserialized value of the HTTP response.
-
-