Pleroma v1.1.9-10-g42f76306+dev Pleroma.ReverseProxy.Client behaviour View Source

Link to this section Summary

Link to this section Functions

Link to this function

request(method, url, headers, binary, opts \\ [])

View Source

Link to this section Callbacks

Link to this callback

close(arg1)

View Source
close(reference() | pid() | map()) :: :ok
Link to this callback

request(atom, arg2, list, arg4, list)

View Source
request(atom(), String.t(), [tuple()], String.t(), list()) ::
  {:ok, pos_integer(), [tuple()], reference() | map()}
  | {:ok, pos_integer(), [tuple()]}
  | {:ok, reference()}
  | {:error, term()}
Link to this callback

stream_body(arg1)

View Source
stream_body(reference() | pid() | map()) ::
  {:ok, binary()} | :done | {:error, String.t()}