Class HttpRequestHead

java.lang.Object
io.vertx.mutiny.core.http.HttpRequestHead
All Implemented Interfaces:
MutinyDelegate
Direct Known Subclasses:
HttpServerRequest

public class HttpRequestHead extends Object implements MutinyDelegate
The state of the HTTP request head:
  • Method / URI
  • Headers

NOTE: This class has been automatically generated from the original non Mutiny-ified interface.

See Also:
  • HttpRequestHead
  • Field Details

  • Constructor Details

    • HttpRequestHead

      public HttpRequestHead(io.vertx.core.http.HttpRequestHead delegate)
      Create a new instance of HttpRequestHead delegating to the given (non-null) instance of HttpRequestHead.
    • HttpRequestHead

      public HttpRequestHead(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.core.http.HttpRequestHead 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 MutinyDelegate
      Returns:
      the delegate instance
    • method

      public io.vertx.core.http.HttpMethod method()
      Returns:
      the HTTP method for the request.
    • uri

      public String uri()
      Returns:
      the URI of the request. This is usually a relative URI
    • path

      public String path()
      Returns:
      The path part of the uri. For example /somepath/somemorepath/someresource.foo. Can be null.
    • query

      public String query()
      Returns:
      the query part of the uri. For example someparam=32&someotherparam=x. Can be null.
    • headers

      public io.vertx.core.MultiMap headers()
      Returns:
      the headers
    • getHeader

      public String getHeader(String headerName)
      Return the first header value with the specified name
      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
      Parameters:
      headerName - the header name
      Returns:
      the header value
    • newInstance

      public static HttpRequestHead newInstance(io.vertx.core.http.HttpRequestHead delegate)
      Creates a new instance of the HttpRequestHead.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object