Debian Codegraph @

doc/src/manual/cowboy_req.bindings.asciidoc

raw
1 = cowboy_req:bindings(3)
2
3 == Name
4
5 cowboy_req:bindings - Access all values bound from the route
6
7 == Description
8
9 [source,erlang]
10 ----
11 bindings(Req :: cowboy_req:req()) -> cowboy_router:bindings()
12 ----
13
14 Return a map containing all bindings.
15
16 == Arguments
17
18 Req::
19
20 The Req object.
21
22 == Return value
23
24 By default values are case sensitive binary strings, however
25 constraints may change the type of this value (for example
26 automatically converting numbers to integer).
27
28 == Changelog
29
30 * *2.0*: Only the values are returned, they are no longer wrapped in a tuple.
31 * *1.0*: Function introduced.
32
33 == Examples
34
35 .Get all bindings
36 [source,erlang]
37 ----
38 Bindings = cowboy_req:bindings(Req).
39 ----
40
41 == See also
42
43 link:man:cowboy_req(3)[cowboy_req(3)],
44 link:man:cowboy_req:binding(3)[cowboy_req:binding(3)],
45 link:man:cowboy_req:host_info(3)[cowboy_req:host_info(3)],
46 link:man:cowboy_req:path_info(3)[cowboy_req:path_info(3)],
47 link:man:cowboy_router(3)[cowboy_router(3)]