Interface Request

All Superinterfaces:
BaseRequest

public interface Request extends BaseRequest

Represents a client request in a server exchange.

Since:
1.0
Author:
Jeremy Kuhn
See Also:
  • Method Details

    • cookies

      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