zx24ht v1.0.0 Tesla.Env View Source

Link to this section Summary

Link to this section Types

Link to this type headers() View Source
headers() :: [{binary(), binary()}]
Link to this type method() View Source
method() :: :head | :get | :delete | :trace | :options | :post | :put | :patch
Link to this type param() View Source
param() :: binary() | [{binary() | atom(), param()}]
Link to this type query() View Source
query() :: [{binary() | atom(), param()}]
Link to this type result() View Source
result() :: {:ok, t()} | {:error, any()}
Link to this type stack() View Source
stack() :: [
  {atom(), atom(), any()}
  | {atom(), atom()}
  | {:fn, (t() -> t())}
  | {:fn, (t(), stack() -> t())}
]
Link to this type t() View Source
t() :: %Tesla.Env{
  __client__: client(),
  __module__: atom(),
  body: body(),
  headers: headers(),
  method: method(),
  opts: opts(),
  query: query(),
  status: status(),
  url: url()
}