urna v0.2.4 Urna

Summary

Functions

__using__(opts) (macro)

Make the DSL available to the module.

Options

  • :headers - default headers to send with every response
  • :allow - CORS rules for what to allow

    • :origins - list of origins to allow
    • :methods - list of methods to allow or true to allow any method
    • :headers - list of headers to allow or true to allow any header
    • :credentials - whether to allow credentials or not
  • :adapters - list of adapters, defaults to [Urna.JSON]
delete(list) (macro)
delete(variable, list) (macro)
delete(variable, options, list) (macro)
fail(code)
fail(code, text)
fail(code, text, headers)
fail(result, code, text, headers)
get(list) (macro)
get(variable, list) (macro)
get(variable, options, list) (macro)
head(list) (macro)
head(variable, list) (macro)
head(variable, options, list) (macro)
header(name) (macro)
headers() (macro)
namespace(name, list) (macro)
param(name) (macro)
params() (macro)
patch(list) (macro)
patch(variable, list) (macro)
patch(variable, options, list) (macro)
post(list) (macro)
post(variable, list) (macro)
post(variable, options, list) (macro)
put(list) (macro)
put(variable, list) (macro)
put(variable, options, list) (macro)
queries() (macro)
query(name) (macro)
redirect(uri)
reply(code)
reply(code, text)
reply(code, text, headers)
reply(result, code, text, headers)
resource(name \\ "", list) (macro)
start(what, listener)
start_link(what, listener)
uri() (macro)
verb(name, list) (macro)
verb(name, path, list) (macro)
verb(name, variable, options, list) (macro)