Page MenuHomePhorge

ex_aws.ex
No OneTemporary

Size
664 B
Referenced Files
None
Subscribers
None

ex_aws.ex

# Pleroma: A lightweight social networking server
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.HTTP.ExAws do
@moduledoc false
@behaviour ExAws.Request.HttpClient
alias Pleroma.HTTP
@impl true
def request(method, url, body \\ "", headers \\ [], http_opts \\ []) do
http_opts = Keyword.put_new(http_opts, :pool, :upload)
case HTTP.request(method, url, body, headers, http_opts) do
{:ok, env} ->
{:ok, %{status_code: env.status, headers: env.headers, body: env.body}}
{:error, reason} ->
{:error, %{reason: reason}}
end
end
end

File Metadata

Mime Type
text/x-ruby
Expires
Sun, Feb 15, 4:37 AM (15 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
980154
Default Alt Text
ex_aws.ex (664 B)

Event Timeline