View Source AliyunOpenAPI.HTTP.Client.Finch (aliyun_open_api v0.6.0)
Finch-based HTTP client.
In order to use Finch
as the HTTP client, you must start Finch
and
provide a :name
. Often in your supervision tree:
children = [
{Finch, name: AliyunOpenAPI.Finch}
]
Or, in rare cases, dynamically:
Finch.start_link(name: AliyunOpenAPI.Finch)
If a name different from AliyunOpenAPI.Finch
is used, or you want to
use an existing Finch
instance, you can provide the name via the config:
config :aliyun_open_api,
finch_name: MyApp.Finch