Interface ClientResponse.Headers
- All Known Implementing Classes:
- ClientResponseWrapper.HeadersWrapper
- Enclosing interface:
- ClientResponse
public static interface ClientResponse.Headers
Represents the headers of the HTTP response.
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionReturn 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.
- 
Method Details- 
contentLengthOptionalLong contentLength()Return the length of the body in bytes, as specified by theContent-Lengthheader.
- 
contentTypeReturn the media type of the body, as specified by theContent-Typeheader.
- 
headerReturn the header value(s), if any, for the header of the given name.Return an empty list if no header values are found. - Parameters:
- headerName- the header name
 
- 
asHttpHeadersHttpHeaders asHttpHeaders()Return the headers as anHttpHeadersinstance.
 
-