maxwell v2.2.3 Maxwell.Middleware behaviour

Example see Maxwell.Middleware.BaseUrl

Link to this section Summary

Link to this section Types

Link to this type failure()
failure() :: {:error, reason :: term()}
Link to this type next_fn()
next_fn() :: (Maxwell.Conn.t() -> Maxwell.Conn.t())
Link to this type opts()
opts() :: any()
Link to this type success()
success() :: Maxwell.Conn.t()

Link to this section Callbacks

Link to this callback call(arg0, next_fn, opts)
call(Maxwell.Conn.t(), next_fn(), opts()) :: success() | failure()
Link to this callback init(opts)
init(opts()) :: opts()
Link to this callback request(arg0, opts)
request(Maxwell.Conn.t(), opts :: term()) :: success() | failure()
Link to this callback response(arg0, opts)
response(Maxwell.Conn.t(), opts :: term()) :: success() | failure()