Postscript.Http behaviour (postscript v1.0.3)

Summary

Types

Link to this type

response_t()

@type response_t() :: %{
  body: String.t(),
  headers: Postscript.http_headers_t(),
  status_code: Postscript.http_status_code_t()
}

Callbacks

Link to this callback

send(request, opts)

@callback send(
  request :: Postscript.Request.t(),
  opts :: any()
) :: {:ok, response_t()} | {:error, response_t() | any()}