diff options
author | Loïc Hoguin <[email protected]> | 2016-11-05 14:17:30 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-11-05 14:17:30 +0200 |
commit | faca7866ed1c59cd41e11fcfc5a9f95378380497 (patch) | |
tree | 7e33284b3426083154b7a1d52ae5db8996212739 /doc/src/manual/cowboy_req.qs.asciidoc | |
parent | 8fe700f341d324c44f6c5f196f8c699c85ee6d78 (diff) | |
download | cowboy-faca7866ed1c59cd41e11fcfc5a9f95378380497.tar.gz cowboy-faca7866ed1c59cd41e11fcfc5a9f95378380497.tar.bz2 cowboy-faca7866ed1c59cd41e11fcfc5a9f95378380497.zip |
Partially update manual for the cowboy_req
Only the access functions have been modified so far.
Diffstat (limited to 'doc/src/manual/cowboy_req.qs.asciidoc')
-rw-r--r-- | doc/src/manual/cowboy_req.qs.asciidoc | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/doc/src/manual/cowboy_req.qs.asciidoc b/doc/src/manual/cowboy_req.qs.asciidoc new file mode 100644 index 0000000..6e92357 --- /dev/null +++ b/doc/src/manual/cowboy_req.qs.asciidoc @@ -0,0 +1,50 @@ += cowboy_req:qs(3) + +== Name + +cowboy_req:qs - URI query string + +== Description + +[source,erlang] +---- +qs(Req :: cowboy_req:req()) -> Qs :: binary() +---- + +Return the query string of the effective request URI. + +The query string can also be obtained using pattern matching: + +[source,erlang] +---- +#{qs := Qs} = Req. +---- + +== Arguments + +Req:: + +The Req object. + +== Return value + +The query string is returned as a binary string. It is case sensitive. + +== Changelog + +* *2.0*: Only the query string is returned, it is no longer wrapped in a tuple. +* *1.0*: Function introduced. + +== Examples + +.Get the effective request URI's query string +[source,erlang] +---- +Qs = cowboy_req:qs(Req). +---- + +== See also + +link:man:cowboy_req(3)[cowboy_req(3)], +link:man:cowboy_req:parse_qs(3)[cowboy_req:parse_qs(3)], +link:man:cowboy_req:match_qs(3)[cowboy_req:match_qs(3)] |