Interface HttpRequest

All Superinterfaces:
HttpMessage
All Known Subinterfaces:
ForwardingHttpRequest

@API(status=STABLE) public interface HttpRequest extends HttpMessage
  • Method Details

    • getRemote

      String getRemote()
    • getMethod

      String getMethod()
    • getRequestUri

      default String getRequestUri()
      Absolute Request URI including scheme, host, port (unless http/80 or https/443), path and query string.

      Note that the URI may be invalid if the client issued an HTTP request using a malformed URL.

      Returns:
      the requested URI
    • getScheme

      String getScheme()
    • getHost

      String getHost()
    • getPort

      Optional<Integer> getPort()
    • getPath

      String getPath()
    • getQuery

      String getQuery()
    • withBody

      HttpRequest withBody() throws IOException
      Throws:
      IOException
    • withoutBody

      HttpRequest withoutBody()