- Type Parameters:
T- The type of the request body.
- All Known Implementing Classes:
DynamicPathRequest,SimpleRequest
Represents an HTTP Request.
-
Method Summary
Modifier and TypeMethodDescriptionbody()default StringRetrieves the user's JWT from the request attributes.default AuthenticationRetrieves the user's authentication from the request attributes.headers()method()
-
Method Details
-
body
T body()- Returns:
- The request body.
-
method
RequestMethod method()- Returns:
- The request method.
-
headers
- Returns:
- The request headers as a map.
-
attributes
- Returns:
- Attributes for the request (for server-side use).
-
queryParams
- Returns:
- The query params as a map.
-
getUserAuthentication
Retrieves the user's authentication from the request attributes.- Returns:
- The user's authentication.
-
getJWTAuthToken
Retrieves the user's JWT from the request attributes.- Returns:
- The user's JWT.
-