mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Fix cowboy_router types
This commit is contained in:
parent
182b647a11
commit
23b3b038e9
1 changed files with 2 additions and 2 deletions
|
@ -37,12 +37,12 @@
|
|||
| {atom(), function, fun ((binary()) -> true | {true, any()} | false)}].
|
||||
-export_type([constraints/0]).
|
||||
|
||||
-type route_match() :: binary() | string().
|
||||
-type route_match() :: '_' | binary() | string().
|
||||
-type route_path() :: {Path::route_match(), Handler::module(), Opts::any()}
|
||||
| {Path::route_match(), constraints(), Handler::module(), Opts::any()}.
|
||||
-type route_rule() :: {Host::route_match(), Paths::[route_path()]}
|
||||
| {Host::route_match(), constraints(), Paths::[route_path()]}.
|
||||
-opaque routes() :: [route_rule()].
|
||||
-type routes() :: [route_rule()].
|
||||
-export_type([routes/0]).
|
||||
|
||||
-type dispatch_match() :: '_' | <<_:8>> | [binary() | '_' | '...' | atom()].
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue