Interface HttpClient.UriConfiguration<S extends HttpClient.UriConfiguration<?>>

All Known Subinterfaces:
HttpClient.RequestSender, HttpClient.ResponseReceiver<S>, HttpClient.WebsocketReceiver<S>, HttpClient.WebsocketSender
Enclosing class:
HttpClient

public static interface HttpClient.UriConfiguration<S extends HttpClient.UriConfiguration<?>>
A URI configuration.
  • Method Summary

    Modifier and Type
    Method
    Description
    uri(String uri)
    Configure URI to use for this request/response.
    uri(URI uri)
    Configure URI to use for this request/response.
    uri(Mono<String> uri)
    Configure URI to use for this request/response on subscribe.
  • Method Details

    • uri

      S uri(String uri)
      Configure URI to use for this request/response.
      Parameters:
      uri - target URI, if starting with "/" it will be prepended with HttpClient.baseUrl(String) when available
      Returns:
      the appropriate sending or receiving contract
    • uri

      S uri(Mono<String> uri)
      Configure URI to use for this request/response on subscribe.
      Parameters:
      uri - target URI, if starting with "/" it will be prepended with HttpClient.baseUrl(String) when available
      Returns:
      the appropriate sending or receiving contract
    • uri

      S uri(URI uri)
      Configure URI to use for this request/response.

      Note: HttpClient.baseUrl(String) will have no effect when this method is used for configuring an URI.

      Parameters:
      uri - target URI which is an absolute, fully constructed URI
      Returns:
      the appropriate sending or receiving contract