- All Superinterfaces:
BaseRequest
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.cookies()Deprecated.Returns the socket address of the interface on which the request was received.Returns the socket address of the client or last proxy that sent the request.Returns the name of the scheme used to send the request (eg. http, https...).Methods inherited from interface io.inverno.mod.http.base.BaseRequest
getAuthority, getMethod, getPath, getPathAbsolute, getPathBuilder, getQuery, headers, queryParameters
-
Method Details
-
cookies
Deprecated.Returns the cookies sent in the request.
- Returns:
- the cookies
-
getScheme
String getScheme()Returns the name of the scheme used to send the request (eg. http, https...).
- Returns:
- the name of the scheme
-
getLocalAddress
SocketAddress getLocalAddress()Returns the socket address of the interface on which the request was received.
- Returns:
- a socket address
-
getRemoteAddress
SocketAddress getRemoteAddress()Returns the socket address of the client or last proxy that sent the request.
- Returns:
- a socket address
-
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
-
InboundRequestHeaders.cookies()