- All Superinterfaces:
BaseRequest
- All Known Subinterfaces:
WebRequest
Represents a client request in a server exchange.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionOptional
<? extends RequestBody> body()
Returns the request body used to consume request payload.Methods inherited from interface io.inverno.mod.http.base.BaseRequest
getAuthority, getLocalAddress, getLocalCertificates, getMethod, getPath, getPathAbsolute, getPathBuilder, getQuery, getRemoteAddress, getRemoteCertificates, getScheme, headers, queryParameters
-
Method Details
-
body
Optional<? extends RequestBody> body()Returns the request body used to consume request payload.
- Returns:
- an optional returning the request body or an empty optional if the request has no payload
-