mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-16 05:00:24 +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:
parent
91ae70b06c
commit
9255cdf1d7
6 changed files with 25 additions and 33 deletions
|
@ -114,10 +114,9 @@ binding(Config) ->
|
|||
<<"default">> = do_get_body("/args/binding/undefined/default", Config),
|
||||
ok.
|
||||
|
||||
%% @todo Do we really want a key/value list here instead of a map?
|
||||
bindings(Config) ->
|
||||
doc("Values bound from request URI path."),
|
||||
<<"[{key,<<\"bindings\">>}]">> = do_get_body("/bindings", Config),
|
||||
<<"#{key => <<\"bindings\">>}">> = do_get_body("/bindings", Config),
|
||||
ok.
|
||||
|
||||
header(Config) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue