Package io.vertx.core.http
Interface HttpResponseHead
-
- All Known Subinterfaces:
HttpClientResponse,HttpResponse<T>
public interface HttpResponseHeadThe state of the HTTP response head:- Status code / Message
- Headers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>cookies()StringgetHeader(CharSequence headerName)Return the first header value with the specified nameStringgetHeader(String headerName)Return the first header value with the specified nameMultiMapheaders()intstatusCode()StringstatusMessage()HttpVersionversion()
-
-
-
Method Detail
-
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
String getHeader(String headerName)
Return the first header value with the specified name- Parameters:
headerName- the header name- Returns:
- the header value
-
getHeader
String getHeader(CharSequence headerName)
Return the first header value with the specified name- Parameters:
headerName- the header name- Returns:
- the header value
-
-