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
  • Constructor Details

    • HttpResponseHeadImpl

      public HttpResponseHeadImpl(io.vertx.core.http.HttpResponseHead delegate)
      Create a new instance of HttpResponseHead.HttpResponseHeadImpl delegating to the given (non-null) instance of HttpResponseHead.
  • 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:
      getDelegate in interface HttpResponseHead
      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate instance
    • version

      public io.vertx.core.http.HttpVersion version()
      Specified by:
      version in interface HttpResponseHead
      Returns:
      the version of the response
    • statusCode

      public int statusCode()
      Specified by:
      statusCode in interface HttpResponseHead
      Returns:
      the status code of the response
    • statusMessage

      public String statusMessage()
      Specified by:
      statusMessage in interface HttpResponseHead
      Returns:
      the status message of the response
    • headers

      public io.vertx.core.MultiMap headers()
      Specified by:
      headers in interface HttpResponseHead
      Returns:
      the headers
    • getHeader

      public String getHeader(String headerName)
      Return the first header value with the specified name
      Specified by:
      getHeader in interface HttpResponseHead
      Parameters:
      headerName - the header name
      Returns:
      the header value. Can be null.
    • getHeader

      public String getHeader(CharSequence headerName)
      Return the first header value with the specified name
      Specified by:
      getHeader in interface HttpResponseHead
      Parameters:
      headerName - the header name
      Returns:
      the header value
    • cookies

      public List<String> cookies()
      Specified by:
      cookies in interface HttpResponseHead
      Returns:
      the Set-Cookie headers (including trailers)