Interface HttpClientFactory

All Known Implementing Classes:
AbstractHttpClientFactory

public interface HttpClientFactory
A factory to create HTTP clients.
Since:
3.0.0
  • Method Details

    • createClient

      @NonNull @NonNull HttpClient createClient(@Nullable @Nullable URL url)
      Create a new HttpClient. Note that this method should only be used outside the context of an application. Within Micronaut use Inject to inject a client instead
      Parameters:
      url - The base URL
      Returns:
      The client
    • createClient

      @NonNull @NonNull HttpClient createClient(@Nullable @Nullable URL url, @NonNull @NonNull HttpClientConfiguration configuration)
      Create a new HttpClient with the specified configuration. Note that this method should only be used outside the context of an application. Within Micronaut use Inject to inject a client instead
      Parameters:
      url - The base URL
      configuration - the client configuration
      Returns:
      The client
      Since:
      2.2.0