public static interface ClientResponse.Headers
ClientResponse.headers()| Modifier and Type | Method and Description | 
|---|---|
| HttpHeaders | asHttpHeaders()Return the headers as an  HttpHeadersinstance. | 
| OptionalLong | contentLength()Return the length of the body in bytes, as specified by the
  Content-Lengthheader. | 
| Optional<MediaType> | contentType()Return the media type of the body, as specified
 by the  Content-Typeheader. | 
| List<String> | header(String headerName)Return the header value(s), if any, for the header of the given name. | 
OptionalLong contentLength()
Content-Length header.Optional<MediaType> contentType()
Content-Type header.List<String> header(String headerName)
Return an empty list if no header values are found.
headerName - the header nameHttpHeaders asHttpHeaders()
HttpHeaders instance.