1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.HTTP.ExAws do
8 @behaviour ExAws.Request.HttpClient
13 def request(method, url, body \\ "", headers \\ [], http_opts \\ []) do
14 http_opts = Keyword.put_new(http_opts, :pool, :upload)
16 case HTTP.request(method, url, body, headers, http_opts) do
18 {:ok, %{status_code: env.status, headers: env.headers, body: env.body}}
21 {:error, %{reason: reason}}