Package tech.xigam.express
Class Request
java.lang.Object
tech.xigam.express.Request
This is a class that contains related data of an HTTP request.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncode(int statusCode) getArgument(String key) Returns the request argument with the given name.Returns the request's body data.voidFetch the URL segments.
-
Field Details
-
httpExchange
-
requestType
-
requestUrl
-
requestBody
-
requestArguments
-
-
Constructor Details
-
Request
-
-
Method Details
-
code
-
addHeader
-
respond
-
urlSegments
Fetch the URL segments.- Returns:
- The segments (without the https://) of the request URL.
-
getArgument
Returns the request argument with the given name.- Parameters:
key- The name of the argument.- Returns:
- The value of the argument.
-
getRequestBody
Returns the request's body data.- Returns:
- The request body as a string.
-