你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Response<T> Interface

Type Parameters

T

The deserialized type of the response content, available from #getValue().

public interface Response

REST response with a strongly-typed content specified.

Method Summary

Modifier and Type Method and Description
abstract HttpHeaders getHeaders()

Gets the headers from the HTTP response.

abstract HttpRequest getRequest()

Gets the HTTP request which resulted in this response.

abstract int getStatusCode()

Gets the HTTP response status code.

abstract T getValue()

Gets the deserialized value of the HTTP response.

Method Details

getHeaders

public abstract HttpHeaders getHeaders()

Gets the headers from the HTTP response.

Returns:

The HTTP response headers.

getRequest

public abstract HttpRequest getRequest()

Gets the HTTP request which resulted in this response.

Returns:

The HTTP request.

getStatusCode

public abstract int getStatusCode()

Gets the HTTP response status code.

Returns:

The status code of the HTTP response.

getValue

public abstract T getValue()

Gets the deserialized value of the HTTP response.

Returns:

The deserialized value of the HTTP response.

Applies to