Interface HttpClientInfos

All Superinterfaces:
HttpInfos
All Known Subinterfaces:
HttpClientRequest, HttpClientResponse

public interface HttpClientInfos extends HttpInfos
An Http Reactive Channel with several accessors related to HTTP flow: resource URL, information for redirections etc...
Since:
0.9.3
  • Method Details

    • currentContext

      @Deprecated Context currentContext()
      Deprecated.
      Use currentContextView(). This method will be removed in version 1.1.0.
      Return the current Context associated with the Mono/Flux exposed via HttpClient.ResponseReceiver.response() or related terminating API.
      Returns:
      the current user Context
    • currentContextView

      ContextView currentContextView()
      Return the current ContextView associated with the Mono/Flux exposed via HttpClient.ResponseReceiver.response() or related terminating API.
      Returns:
      the current user ContextView
      Since:
      1.0.0
    • redirectedFrom

      String[] redirectedFrom()
      Return the previous redirections or empty array.
      Returns:
      the previous redirections or empty array
    • requestHeaders

      HttpHeaders requestHeaders()
      Return outbound headers to be sent.
      Returns:
      outbound headers to be sent
    • resourceUrl

      @Nullable String resourceUrl()
      Return the fully qualified URL of the requested resource. In case of redirects, return the URL the last redirect led to.
      Returns:
      The URL of the retrieved resource. This method can return null in case there was an error before the client could create the URL