sheriff v0.3.0 Sheriff.Plug

Not an actual Plug but a collection of Plug related helper functions.

Summary

Functions

conn_action(conn)
conn_action(Plug.Conn.t) :: atom | {atom, binary}
current_actor(conn)
current_actor(Plug.Conn.t) :: any

Retrieve the current Actor resource.

current_resource(conn)
current_resource(Plug.Conn.t) :: any

Retrieve the current resource for the request.

from_opts(opts, key, default \\ nil)
from_opts(keyword, atom, any) :: any
handle_error(error, conn, opts)
handle_error(atom, Plug.Conn.t, keyword) :: Plug.Conn.t