0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 12:40:25 +00:00

Change the type of bindings from a list to a map

Maps make more sense because the keys are unique.
This commit is contained in:
Loïc Hoguin 2017-02-19 16:51:16 +01:00
parent 91ae70b06c
commit 9255cdf1d7
No known key found for this signature in database
GPG key ID: 71366FF21851DF03
6 changed files with 25 additions and 33 deletions

View file

@ -33,7 +33,7 @@ a 404 response otherwise.
[source,erlang]
----
bindings() :: [{atom(), binary()}]
bindings() :: #{atom() => any()}
----
Bindings found during routing.