Package io.vertx.mutiny.core.http
Class HttpResponseHead.HttpResponseHeadImpl
java.lang.Object
io.vertx.mutiny.core.http.HttpResponseHead.HttpResponseHeadImpl
- All Implemented Interfaces:
MutinyDelegate,HttpResponseHead
- Enclosing interface:
- HttpResponseHead
public static class HttpResponseHead.HttpResponseHeadImpl
extends Object
implements HttpResponseHead
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vertx.mutiny.core.http.HttpResponseHead
HttpResponseHead.HttpResponseHeadImpl -
Constructor Summary
ConstructorsConstructorDescriptionHttpResponseHeadImpl(io.vertx.core.http.HttpResponseHead delegate) Create a new instance ofHttpResponseHead.HttpResponseHeadImpldelegating to the given (non-null) instance ofHttpResponseHead. -
Method Summary
Modifier and TypeMethodDescriptioncookies()io.vertx.core.http.HttpResponseHeadGet the delegate instance.getHeader(CharSequence headerName) Return the first header value with the specified nameReturn the first header value with the specified nameio.vertx.core.MultiMapheaders()intio.vertx.core.http.HttpVersionversion()
-
Constructor Details
-
HttpResponseHeadImpl
public HttpResponseHeadImpl(io.vertx.core.http.HttpResponseHead delegate) Create a new instance ofHttpResponseHead.HttpResponseHeadImpldelegating to the given (non-null) instance ofHttpResponseHead.
-
-
Method Details
-
getDelegate
public io.vertx.core.http.HttpResponseHead getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceHttpResponseHead- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
version
public io.vertx.core.http.HttpVersion version()- Specified by:
versionin interfaceHttpResponseHead- Returns:
- the version of the response
-
statusCode
public int statusCode()- Specified by:
statusCodein interfaceHttpResponseHead- Returns:
- the status code of the response
-
statusMessage
- Specified by:
statusMessagein interfaceHttpResponseHead- Returns:
- the status message of the response
-
headers
public io.vertx.core.MultiMap headers()- Specified by:
headersin interfaceHttpResponseHead- Returns:
- the headers
-
getHeader
Return the first header value with the specified name- Specified by:
getHeaderin interfaceHttpResponseHead- Parameters:
headerName- the header name- Returns:
- the header value. Can be
null.
-
getHeader
Return the first header value with the specified name- Specified by:
getHeaderin interfaceHttpResponseHead- Parameters:
headerName- the header name- Returns:
- the header value
-
cookies
- Specified by:
cookiesin interfaceHttpResponseHead- Returns:
- the Set-Cookie headers (including trailers)
-