Hunter.Config (hunter v0.7.0)

Copy Markdown View Source

Hunter configuration.

Summary

Functions

Returns the API base URL

Returns the Hunter home directory

Returns extra options merged into every Req request, e.g. for timeouts or (in tests) the Req.Test plug adapter.

Functions

api_base_url()

Returns the API base URL

Examples

iex> Hunter.Config.api_base_url()
"https://mastodon.social"

home()

Returns the Hunter home directory

Examples

iex> Path.basename(Hunter.Config.home())
".hunter"

req_options()

Returns extra options merged into every Req request, e.g. for timeouts or (in tests) the Req.Test plug adapter.