Interface HttpRequest


public interface HttpRequest
Http request model
  • Method Details

    • getRequestMethod

      HttpMethod getRequestMethod()
      Returns the http method. e.g. GET, POST, etc.
    • getRequestScheme

      String getRequestScheme()
      Http protocol string: http, https etc.
    • getHost

      String getHost()
      Requested host
    • getPort

      Integer getPort()
      Requested port
    • getRequestURI

      String getRequestURI()
      The part of request's URL from the domain(port) name up to the query string
    • getQueryString

      String getQueryString()
      Query URL part after '?' char
    • getHeaders

      HttpValues<String,String> getHeaders()
      Returns read-only http headers
    • getCookies

      Returns read-only cookies
    • getQueryParameters

      HttpValues<String,String> getQueryParameters()
      Returns read-only query string parameters
    • getPostParameters

      HttpValues<String,String> getPostParameters()
      Returns read-only string parameters model from post map with Content-Type: application/x-www-form-urlencoded or multipart/form-data except files
    • getPostFiles

      HttpValues<String,HttpFile> getPostFiles()
      Returns read-only file model from post map with Content-Type: multipart/form-data
    • getInputStream

      InputStream getInputStream()
      Returns body input stream
    • dump

      void dump(Writer out)
      Dump request data to characters output for further logging