Interface HttpRequest

All Superinterfaces:
HttpMessage
All Known Subinterfaces:
ForwardingHttpRequest

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

    • getRemote

      java.lang.String getRemote()
    • getMethod

      java.lang.String getMethod()
    • getRequestUri

      default java.lang.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

      java.lang.String getScheme()
    • getHost

      java.lang.String getHost()
    • getPort

      java.util.Optional<java.lang.Integer> getPort()
    • getPath

      java.lang.String getPath()
    • getQuery

      java.lang.String getQuery()
    • withBody

      HttpRequest withBody() throws java.io.IOException
      Throws:
      java.io.IOException
    • withoutBody

      HttpRequest withoutBody()