Behaviours: cowboy_middleware.
bindings() = [{atom(), binary()}]
abstract datatype: dispatch_rules()
route_match() = '_' | iodata()
route_path() = {Path::route_match(), Handler::module(), Opts::any()} | {Path::route_match(), cowboy:fields(), Handler::module(), Opts::any()}
route_rule() = {Host::route_match(), Paths::[route_path()]} | {Host::route_match(), cowboy:fields(), Paths::[route_path()]}
routes() = [route_rule()]
tokens() = [binary()]
compile/1 | |
execute/2 |
compile(Routes::routes()) -> dispatch_rules()
execute(Req, Env) -> {ok, Req, Env} | {halt, Req}
Generated by EDoc, Apr 30 2015, 05:35:21.