Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F41646736
ex_aws.ex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
664 B
Referenced Files
None
Subscribers
None
ex_aws.ex
View Options
# 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
Details
Attached
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)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment