diff options
author | Loïc Hoguin <[email protected]> | 2013-12-28 20:10:06 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-12-28 20:10:06 +0100 |
commit | 7a274661b297375c8c2c0c1d9cd23bb52185cf84 (patch) | |
tree | 32ca5d55abc9c60ca9af7bd2c729ccf94965e768 /manual/cowboy_req.md | |
parent | 6907541a788f4ae9da0bc3fe0ec3680583f5cf46 (diff) | |
download | cowboy-7a274661b297375c8c2c0c1d9cd23bb52185cf84.tar.gz cowboy-7a274661b297375c8c2c0c1d9cd23bb52185cf84.tar.bz2 cowboy-7a274661b297375c8c2c0c1d9cd23bb52185cf84.zip |
Fix typespecs for cowboy_req:binding/{2,3} and :bindings/1
Diffstat (limited to 'manual/cowboy_req.md')
-rw-r--r-- | manual/cowboy_req.md | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/manual/cowboy_req.md b/manual/cowboy_req.md index c7e2180..d7af41f 100644 --- a/manual/cowboy_req.md +++ b/manual/cowboy_req.md @@ -49,17 +49,25 @@ Request related exports > Types: > * Name = atom() > * Default = any() -> * Value = binary() | Default +> * Value = any() | Default > > Return the value for the given binding. +> +> By default the value is a binary, however constraints may change +> the type of this value (for example automatically converting +> numbers to integer). ### bindings(Req) -> {[{Name, Value}], Req2} > Types: > * Name = atom() -> * Value = binary() +> * Value = any() > > Return all bindings. +> +> By default the value is a binary, however constraints may change +> the type of this value (for example automatically converting +> numbers to integer). ### cookie(Name, Req) -> cookie(Name, Req, undefined) ### cookie(Name, Req, Default) -> {Value, Req2} |