Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33103938
hackney.ex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
633 B
Referenced Files
None
Subscribers
None
hackney.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.ReverseProxy.Client.Hackney
do
@behaviour
Pleroma.ReverseProxy.Client
@impl
true
def
request
(
method
,
url
,
headers
,
body
,
opts
\\
[])
do
:hackney
.
request
(
method
,
url
,
headers
,
body
,
opts
)
end
@impl
true
def
stream_body
(
ref
)
do
case
:hackney
.
stream_body
(
ref
)
do
:done
->
:done
{
:ok
,
data
}
->
{
:ok
,
data
,
ref
}
{
:error
,
error
}
->
{
:error
,
error
}
end
end
@impl
true
def
close
(
ref
),
do
:
:hackney
.
close
(
ref
)
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Tue, Jan 20, 2:04 PM (47 m, 29 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
973845
Default Alt Text
hackney.ex (633 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment