Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

21 行
759B

  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.ReverseProxy.Client do
  5. @type status :: pos_integer()
  6. @type header_name :: String.t()
  7. @type header_value :: String.t()
  8. @type headers :: [{header_name(), header_value()}]
  9. @callback request(atom(), String.t(), headers(), String.t(), list()) ::
  10. {:ok, status(), headers(), reference() | map()}
  11. | {:ok, status(), headers()}
  12. | {:ok, reference()}
  13. | {:error, term()}
  14. @callback stream_body(map()) :: {:ok, binary(), map()} | :done | {:error, atom() | String.t()}
  15. @callback close(reference() | pid() | map()) :: :ok
  16. end