View Source Snap.HTTPClient.Adapters.Finch (Snap v0.9.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.
Summary
Types
Available options for configuring the Finch adapter. For more information about the options, you can check Finch's official docs.
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 to5.conn_opts: Connection options passed toMint.HTTP.connect/4. Defaults to[].