diff options
author | Loïc Hoguin <[email protected]> | 2017-02-22 13:26:18 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-02-22 13:26:18 +0100 |
commit | ade8a523dd6afe21f169a3f41cd78cc1ba730c74 (patch) | |
tree | 15ebf7938b8374b2f867be361bc52c34b3415ef6 /docs/en/cowboy/2.0/guide/req.asciidoc | |
parent | 7bb98d0476dbe4ee5e9317e42ca17e4a7d717e0d (diff) | |
download | ninenines.eu-ade8a523dd6afe21f169a3f41cd78cc1ba730c74.tar.gz ninenines.eu-ade8a523dd6afe21f169a3f41cd78cc1ba730c74.tar.bz2 ninenines.eu-ade8a523dd6afe21f169a3f41cd78cc1ba730c74.zip |
Update docs
Diffstat (limited to 'docs/en/cowboy/2.0/guide/req.asciidoc')
-rw-r--r-- | docs/en/cowboy/2.0/guide/req.asciidoc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/docs/en/cowboy/2.0/guide/req.asciidoc b/docs/en/cowboy/2.0/guide/req.asciidoc index 9afee098..b879fa3d 100644 --- a/docs/en/cowboy/2.0/guide/req.asciidoc +++ b/docs/en/cowboy/2.0/guide/req.asciidoc @@ -197,8 +197,6 @@ And any other combination. === Bindings -// @todo Bindings should probably be a map themselves. - Bindings are the host and path components that you chose to extract when defining the routes of your application. They are only available after the routing. @@ -222,10 +220,7 @@ To retrieve everything that was bound: [source,erlang] Bindings = cowboy_req:bindings(Req). -They are returned as a list of key/value pairs, with -keys being atoms. - -// ... +They are returned as a map, with keys being atoms. The Cowboy router also allows you to capture many host or path segments at once using the `...` qualifier. |