mazurka v1.0.7 Mazurka.Mediatype behaviour

TODO write the docs

Link to this section Summary

Functions

Create a mediatype with default macros for action, affordance, error, and provides

Callbacks

TODO write the docs

TODO write the docs

TODO write the docs

Link to this section Types

Link to this type props()
props() :: Map.t

Link to this section Functions

Link to this macro __using__(_) (macro)

Create a mediatype with default macros for action, affordance, error, and provides

defmodule Mazurka.Mediatype.MyMediatype do
  use Mazurka.Mediatype
end

Link to this section Callbacks

Link to this callback content_types()
content_types() :: [{binary, binary, binary, module}]

TODO write the docs

Link to this macro callback handle_action(ast)
handle_action(term, ast) :: any

TODO write the docs

Link to this macro callback handle_affordance(ast, props)
handle_affordance(term, ast, props) :: any

TODO write the docs