Package io.vertx.core.http
Interface HttpResponseHead
-
- All Known Subinterfaces:
HttpClientResponse
,HttpResponse<T>
public interface HttpResponseHead
The 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()
String
getHeader(CharSequence headerName)
Return the first header value with the specified nameString
getHeader(String headerName)
Return the first header value with the specified nameMultiMap
headers()
int
statusCode()
String
statusMessage()
HttpVersion
version()
-
-
-
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
-
-