mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Add persistent_term support to the router
This commit is contained in:
parent
7bccad4d21
commit
cf84f59d9b
5 changed files with 80 additions and 3 deletions
|
@ -13,7 +13,10 @@ The router takes the `dispatch` rules as input from the
|
|||
middleware environment. Dispatch rules are generated by
|
||||
calling the
|
||||
link:man:cowboy_router:compile(3)[cowboy_router:compile(3)]
|
||||
function.
|
||||
function. The environment can contain the rules directly
|
||||
or a tuple `{persistent_term, Key}`, in which case Cowboy
|
||||
will call `persistent_term:get(Key)` to retrieve the
|
||||
dispatch rules.
|
||||
|
||||
When a route matches, the router sets the `handler` and
|
||||
`handler_opts` middleware environment values containing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue