接口 ClientResponse.Headers
- 封闭接口:
- ClientResponse
public static interface ClientResponse.Headers
Represents the headers of the HTTP response.
- 另请参阅:
-
方法概要
修饰符和类型方法说明Return the headers as anHttpHeadersinstance.Return the length of the body in bytes, as specified by theContent-Lengthheader.Return the media type of the body, as specified by theContent-Typeheader.Return the header value(s), if any, for the header of the given name.
-
方法详细资料
-
contentLength
OptionalLong contentLength()Return the length of the body in bytes, as specified by theContent-Lengthheader. -
contentType
Return the media type of the body, as specified by theContent-Typeheader. -
header
Return the header value(s), if any, for the header of the given name.Return an empty list if no header values are found.
- 参数:
headerName- the header name
-
asHttpHeaders
HttpHeaders asHttpHeaders()Return the headers as anHttpHeadersinstance.
-