copper v0.4.1 Copper.Handler behaviour

Link to this section Summary

Link to this section Functions

Link to this function

send_200(conn, payload)

Link to this function

send_201(conn, payload)

Link to this function

send_400(conn, error)

Link to this function

send_json(conn, status, payload)

Link to this function

send_message(conn, status, message)

Link to this section Callbacks

Link to this callback

delete(conn, id)

Specs

delete(conn :: Plug.Conn.t(), id :: String.t()) :: Plug.Conn.t() | no_return()

Specs

edit(conn :: Plug.Conn.t(), id :: String.t()) :: Plug.Conn.t() | no_return()

Specs

get(conn :: Plug.Conn.t()) :: Plug.Conn.t() | no_return()

Specs

new(conn :: Plug.Conn.t()) :: Plug.Conn.t() | no_return()

Specs

show(conn :: Plug.Conn.t(), id :: String.t()) :: Plug.Conn.t() | no_return()