Snap.HTTPClient.Adapters.Finch (Snap v0.14.0)
View SourceBuilt 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(), accept_encoding: String.t() | false ]
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[].accept_encoding: The default 'Accept-Encoding' header to send as a string. Defaults togzip, so the server will return gzip compressed responses if configured correctly. Set tofalseto disable.