org.springframework.http.client

## Interface AsyncClientHttpRequestFactory

- All Known Implementing Classes:
    HttpComponentsAsyncClientHttpRequestFactory, SimpleClientHttpRequestFactory

      public interface AsyncClientHttpRequestFactory

  Factory for `AsyncClientHttpRequest` objects. Requests are created by the `createAsyncRequest(URI, HttpMethod)` method.
  Since:
    4.0
  Author:
    Arjen Poutsma

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `AsyncClientHttpRequest` | `createAsyncRequest(URI uri, HttpMethod httpMethod)` Create a new asynchronous `AsyncClientHttpRequest` for the specified URI and HTTP method.

- - ### Method Detail

    - #### createAsyncRequest

          AsyncClientHttpRequest createAsyncRequest(URI uri,
                                                    HttpMethod httpMethod)
                                             throws IOException

      Create a new asynchronous `AsyncClientHttpRequest` for the specified URI and HTTP method.

      The returned request can be written to, and then executed by calling `AsyncClientHttpRequest.executeAsync()`.

      Parameters:
        `uri` - the URI to create a request for
        `httpMethod` - the HTTP method to execute
      Returns:
        the created request
      Throws:
        `IOException` - in case of I/O errors