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.Gun.API do
27 def open(host, port, opts \\ %{}), do: :gun.open(host, port, Map.take(opts, @gun_keys))
30 defdelegate info(pid), to: :gun
33 defdelegate close(pid), to: :gun
36 defdelegate await_up(pid, timeout \\ 5_000), to: :gun
39 defdelegate connect(pid, opts), to: :gun
42 defdelegate await(pid, ref), to: :gun
45 defdelegate set_owner(pid, owner), to: :gun