Class Request

java.lang.Object
tech.xigam.express.Request

public final class Request extends Object
This is a class that contains related data of an HTTP request.
  • Field Details

    • httpExchange

      public final HttpExchange httpExchange
    • requestType

      public final String requestType
    • requestUrl

      public final String requestUrl
    • requestArguments

      public final Map<String,String> requestArguments
  • Constructor Details

  • Method Details

    • code

      public Request code(int statusCode)
    • respond

      public void respond(String response)
    • urlSegments

      public List<String> urlSegments()
      Fetch the URL segments.
      Returns:
      The segments (without the https://) of the request URL.