Interface HttpPreRequest

All Known Subinterfaces:
HttpRequest

public interface HttpPreRequest
A slim interface for precursors to HTTP requests, which doesn't expose access to the request's body, because it's not available yet.
  • Method Details

    • method

      Returns the HTTP method used in the HTTP request.
      Returns:
      the RestRequest.Method used in the request
      Throws:
      IllegalArgumentException - if the HTTP method is invalid
    • uri

      String uri()
      The uri with the query string.
    • rawPath

      default String rawPath()
      The uri without the query string.
    • getHeaders

      Map<String,List<String>> getHeaders()
      Get all of the headers and values associated with the HTTP headers. Modifications of this map are not supported.
    • header

      default String header(String name)