mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-16 05:00:24 +00:00
Add support for the '*' path.
Mostly used by the following request: OPTIONS * HTTP/1.1
This commit is contained in:
parent
2c52a30b0a
commit
a4f8bb6573
3 changed files with 13 additions and 4 deletions
|
@ -25,8 +25,8 @@
|
|||
-type port_number() :: 0..65535.
|
||||
|
||||
-type bindings() :: list({Key::atom(), Value::string()}).
|
||||
-type path_tokens() :: list(string()).
|
||||
-type match() :: '_' | list(string() | '_' | atom()).
|
||||
-type path_tokens() :: '*' | list(string()).
|
||||
-type match() :: '_' | '*' | list(string() | '_' | atom()).
|
||||
|
||||
-type dispatch_rules() :: {Host::match(), list({Path::match(),
|
||||
Handler::module(), Opts::term()})}.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue