Interface HttpRequest
- All Known Implementing Classes:
HttpRequestImpl
public interface HttpRequest
Class representing an HTTP request.
Contains details such as the HTTP method, URL, headers, and body.
-
Method Summary
Modifier and TypeMethodDescriptiongetBody()
Gets the body of the request.Gets the headers of the request.Gets the HTTP method of the request.getPath()
Gets the path of the request (excluding query parameters).Gets the query parameters from the URL.getURL()
Gets the full URL of the request.Gets the path parameters extracted from the URL.
-
Method Details
-
getMethod
-
getURL
-
getPath
String getPath()Gets the path of the request (excluding query parameters).- Returns:
- the path as a string
-
pathParameters
-
getQueryParameters
-
getHeaders
-
getBody
-