Interface HttpRequestFactory<T>

  • Type Parameters:
    T - Request class that is accepted by the underlying http client.
    All Known Implementing Classes:
    ApacheHttpRequestFactory

    @Beta
    public interface HttpRequestFactory<T>
    An interface that can be used to create the http requests that is understood by the http client.
    • Method Detail

      • create

        T create​(Request<?> request,
                 HttpClientSettings settings)
          throws IOException
        A factory method for creating http requests accepted by the underlying http client from the sdk request objects.
        Parameters:
        request - sdk request object.
        settings - configuration to be set for the http request.
        Returns:
        an instance of request that is accepted by the underlying http client that SDK uses.
        Throws:
        IOException