RingCentral.HTTPClient.DefaultClient (RingCentral v0.2.1) View Source

The default implementation for RingCentral.HTTPClient. Uses Finch as the HTTP client.

Add the RingCentral.HTTPClient.DefaultClient to your application's supervision tree:

# lib/your_app/application.ex
def start(_type, _args) do
  children = [
    ...
    {RingCentral.HTTPClient.DefaultClient, []}
  ]

  ...
end

Or start it dynamically with start_link/1

Link to this section Summary

Functions

Start an instance of the defalut HTTPClient.

Link to this section Functions

Start an instance of the defalut HTTPClient.

The following options will be passed to the Finch.start_link/1:

[
  name: __MODULE__
  pools: %{
    RingCentral.sandbox_server_url() => [size: 1],
    RingCentral.production_server_url() => [size: 10]
  }
]

You override the default options with opts, see Finch.start_link/1 for detail.

Example

opts = [
  pools: %{
    RingCentral.production_server_url() => [size: 30]
  }
]

RingCentral.HTTPClient.DefaultClient.start_link(opts)