View Source Snap.HTTPClient.Adapters.Finch (Snap v0.7.0)

Built in adapter using Finch.

You can also configure this adapter by explicitly setting the http_client_adapter in the Snap.Cluster configuration with a tuple {Snap.HTTPClient.Adapters.Finch, config}. For example:

config :my_app, MyApp.Cluster,
  http_client_adapter: {Snap.HTTPClient.Adapters.Finch, pool_size: 20}

You can check the config/0 for docs about the available configurations.

Link to this section Summary

Types

Available options for configuring the Finch adapter. For more information about the options, you can check Finch's official docs.

Link to this section Types

@type config() :: [pool_size: pos_integer(), conn_opts: keyword()]

Available options for configuring the Finch adapter. For more information about the options, you can check Finch's official docs.

  • pool_size: Set the pool size. Defaults to 5.
  • conn_opts: Connection options passed to Mint.HTTP.connect/4. Defaults to [].