From 7a274661b297375c8c2c0c1d9cd23bb52185cf84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sat, 28 Dec 2013 20:10:06 +0100 Subject: Fix typespecs for cowboy_req:binding/{2,3} and :bindings/1 --- manual/cowboy_req.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'manual') 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} -- cgit v1.2.3