Interface HttpResponseHead
- All Known Subinterfaces:
HttpClientResponse, HttpResponse<T>
public interface HttpResponseHead
The state of the HTTP response head:
- Status code / Message
- Headers
-
Method Summary
Modifier and TypeMethodDescriptioncookies()getHeader(CharSequence headerName) Return the first header value with the specified nameReturn the first header value with the specified nameheaders()intversion()
-
Method Details
-
version
HttpVersion version()- Returns:
- the version of the response
-
statusCode
int statusCode()- Returns:
- the status code of the response
-
statusMessage
String statusMessage()- Returns:
- the status message of the response
-
headers
MultiMap headers()- Returns:
- the headers
-
getHeader
-
getHeader
Return the first header value with the specified name- Parameters:
headerName- the header name- Returns:
- the header value
-
cookies
-