Top Description Methods
io.vertx.core.http

public Interface HttpResponseHead

Known Direct Subinterfaces
io.vertx.core.http.HttpClientResponse
Annotations
@VertxGen
concrete:false
Imports
io.vertx.codegen.annotations.CacheReturn, .GenIgnore, .Nullable, .VertxGen, io.vertx.core.MultiMap, java.util.List

The state of the HTTP response head:

Method Summary

Modifier and TypeMethod and Description
public List<String>

Returns:

the Set-Cookie headers (including trailers)
cookies
()

public @Nullable String

Returns:

the header value
getHeader
(String
the header name
headerName
)

Return the first header value with the specified name

public String

Returns:

the header value
getHeader
(CharSequence
the header name
headerName
)

Return the first header value with the specified name

public MultiMap

Returns:

the headers
headers
()

public int

Returns:

the status code of the response
statusCode
()

public String

Returns:

the status message of the response
statusMessage
()

public HttpVersion

Returns:

the version of the response
version
()

Method Detail

cookiesback to summary
public List<String> cookies()
Returns:List<String>

the Set-Cookie headers (including trailers)

Annotations
@CacheReturn
getHeaderback to summary
public @Nullable String getHeader(String headerName)

Return the first header value with the specified name

Parameters
headerName:String

the header name

Returns:@Nullable String

the header value

getHeaderback to summary
public String getHeader(CharSequence headerName)

Return the first header value with the specified name

Parameters
headerName:CharSequence

the header name

Returns:String

the header value

Annotations
@GenIgnore:permitted-type
headersback to summary
public MultiMap headers()
Returns:MultiMap

the headers

Annotations
@CacheReturn
statusCodeback to summary
public int statusCode()
Returns:int

the status code of the response

statusMessageback to summary
public String statusMessage()
Returns:String

the status message of the response

versionback to summary
public HttpVersion version()
Returns:HttpVersion

the version of the response