Interface HTTPRequest


@Immutable public interface HTTPRequest
Represents an HTTP request.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the base URI configured at the REST client level.
    Returns the raw, unencoded request body.
    default void
     
    default String
    Returns the encoded request body as a string.
    default HTTPHeaders
    Returns the headers of this request.
    default com.fasterxml.jackson.databind.ObjectMapper
    Returns the ObjectMapper to use for encoding the request body.
    Returns the HTTP method of this request.
    Returns the path of this request.
    Returns the query parameters of this request.
    default URI
    Returns the full URI of this request.
  • Method Details

    • baseUri

      URI baseUri()
      Returns the base URI configured at the REST client level. The base URI is used to construct the full requestUri().
    • requestUri

      @Lazy default URI requestUri()
      Returns the full URI of this request. The URI is constructed from the base URI, path, and query parameters. It cannot be modified directly.
    • method

      Returns the HTTP method of this request.
    • path

      String path()
      Returns the path of this request.
    • queryParameters

      Map<String,String> queryParameters()
      Returns the query parameters of this request.
    • headers

      @Default default HTTPHeaders headers()
      Returns the headers of this request.
    • body

      @Nullable @Redacted Object body()
      Returns the raw, unencoded request body.
    • encodedBody

      @Lazy @Nullable @Redacted default String encodedBody()
      Returns the encoded request body as a string.
    • mapper

      @Default default com.fasterxml.jackson.databind.ObjectMapper mapper()
      Returns the ObjectMapper to use for encoding the request body. The default is RESTObjectMapper.mapper().
    • check

      @Check default void check()