aboutsummaryrefslogtreecommitdiff
path: root/doc/ref/web/query.texi
blob: 6458db5aac5ce48d29a3e37302917b1cf7e6870c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
@node Web Query
@section (web query)

@defun parse-query query-string [encoding=''UTF-8'']
Given a string like ``?key=value&other=something'', returns
@code{(key: "value" other: "something")}. Performs uri-decoding of
both key and value. A key without a value decodes to that key, with
itself as its value
@end defun

@defun encode-query-parameters parameters
Given the association list @var{parameter}, encode it into a query
string on the form ``key=value&...''.
@end defun