Interface FullClientRequest<T extends ClientRequest<T>>

Type Parameters:
T - type of the implementation, to support fluent API
All Superinterfaces:
ClientRequest<T>
All Known Implementing Classes:
ClientRequestBase, HttpClientRequest

public interface FullClientRequest<T extends ClientRequest<T>> extends ClientRequest<T>
Client request with getters for all configurable options, used for integration with HTTP version implementations.
  • Method Details

    • pathParams

      Map<String,String> pathParams()
      Replace a placeholder in URI with an actual value.
      Returns:
      a map of path parameters
    • method

      Method method()
      HTTP method of this request.
      Returns:
      method
    • uri

      ClientUri uri()
      URI of this request.
      Returns:
      client URI
    • properties

      Map<String,String> properties()
      Configured properties.
      Returns:
      properties
    • requestId

      String requestId()
      Request ID.
      Returns:
      id of this request
    • connection

      Optional<ClientConnection> connection()
      Possible explicit connection to use (such as when using a proxy).
      Returns:
      client connection if explicitly defined
    • address

      default Optional<SocketAddress> address()
      Address of the connection, if configured.
      Returns:
      socket address - may be an InetSocketAddress or UnixDomainSocketAddress
    • readTimeout

      Duration readTimeout()
      Read timeout.
      Returns:
      read timeout of this request
    • readContinueTimeout

      Duration readContinueTimeout()
      Read 100-Continue timeout.
      Returns:
      read 100-Continue timeout of this request
    • tls

      Tls tls()
      TLS configuration (may be disabled - e.g. use plaintext).
      Returns:
      TLS configuration
    • sni

      default Optional<SniConfig> sni()
      Request-level SNI configuration.
      Returns:
      SNI configuration if configured
    • proxy

      Proxy proxy()
      Proxy configuration (may be no-proxy).
      Returns:
      proxy
    • selectedProxyRoute

      default Optional<ProxyRoute> selectedProxyRoute()
      Effective proxy route already selected during the current top-level request invocation. The route may be shared with protocol fallbacks and other internal handoffs in that invocation.
      Returns:
      selected proxy route, or empty when this request still needs route selection
    • selectedProxyRoute

      default void selectedProxyRoute(ProxyRoute proxyRoute)
      Retain an effective proxy route while handing a request between protocol implementations in the current top-level request invocation. The default implementation validates and otherwise ignores the route.
      Parameters:
      proxyRoute - selected proxy route
    • clearSelectedProxyRoute

      default void clearSelectedProxyRoute()
      Clear retained route state after the current top-level request invocation, or when it no longer matches a finalized request target. The default implementation has no effect.
    • keepAlive

      boolean keepAlive()
      Whether to use keep-alive connection (if relevant for the used HTTP version).
      Returns:
      whether to use keep alive
    • skipUriEncoding

      boolean skipUriEncoding()
      Whether to skip URI encoding.
      Returns:
      whether to skip encoding
    • sendExpectContinue

      Optional<Boolean> sendExpectContinue()
      Whether Expect 100-Continue header is sent to verify server availability before sending an entity. Overrides the setting from HttpClientConfig.sendExpectContinue().
      Returns:
      Expect 100-Continue value if set