You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
447 B
15 lines
447 B
defmodule Pleroma.HTTP.AdapterHelper.Default do
|
|
alias Pleroma.HTTP.AdapterHelper
|
|
|
|
@behaviour Pleroma.HTTP.AdapterHelper
|
|
|
|
@spec options(keyword(), URI.t()) :: keyword()
|
|
def options(opts, _uri) do
|
|
proxy = Pleroma.Config.get([:http, :proxy_url], nil)
|
|
AdapterHelper.maybe_add_proxy(opts, AdapterHelper.format_proxy(proxy))
|
|
end
|
|
|
|
@spec get_conn(URI.t(), keyword()) :: {:ok, keyword()}
|
|
def get_conn(_uri, opts), do: {:ok, opts}
|
|
end
|