aboutsummaryrefslogtreecommitdiff
path: root/doc/ref/web
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-09-12 10:35:37 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-09-12 10:35:37 +0200
commita3675c13336afb0b37e0f211c649813f4f291224 (patch)
tree53c480199fe2ce625af575188740fa4d12507712 /doc/ref/web
parentRework file tree structure for info files. (diff)
downloadcalp-a3675c13336afb0b37e0f211c649813f4f291224.tar.gz
calp-a3675c13336afb0b37e0f211c649813f4f291224.tar.xz
Further doc work.
Diffstat (limited to '')
-rw-r--r--doc/ref/web.texi4
-rw-r--r--doc/ref/web/query.texi9
-rw-r--r--doc/ref/web/routes.texi (renamed from doc/ref/web/web.texi)23
-rw-r--r--doc/ref/web/uri-query.texi7
4 files changed, 21 insertions, 22 deletions
diff --git a/doc/ref/web.texi b/doc/ref/web.texi
index e3c73f44..8574e166 100644
--- a/doc/ref/web.texi
+++ b/doc/ref/web.texi
@@ -1,4 +1,6 @@
@node Webservers and -Clients
@chapter Webservers and -Clients
-@include web/web.texi
+@include web/query.texi
+@include web/uri-query.texi
+@include web/routes.texi
diff --git a/doc/ref/web/query.texi b/doc/ref/web/query.texi
new file mode 100644
index 00000000..df3ba953
--- /dev/null
+++ b/doc/ref/web/query.texi
@@ -0,0 +1,9 @@
+@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
diff --git a/doc/ref/web/web.texi b/doc/ref/web/routes.texi
index 69ab726f..a2249c7a 100644
--- a/doc/ref/web/web.texi
+++ b/doc/ref/web/routes.texi
@@ -1,24 +1,5 @@
-@node Web Stuff
-@section Web Stuff
-
-@subsection (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
-
-
-@subsection (web uri-query)
-
-@defun encode-query-parameters parameters
-Given the association list @var{parameter}, encode it into a query
-string on the form ``key=value&...''.
-@end defun
-
-@subsection (web http make-routes)
+@node HTTP Routes
+@section (web http make-routes)
@defun parse-endpoint-string str
Only really public for tests.
diff --git a/doc/ref/web/uri-query.texi b/doc/ref/web/uri-query.texi
new file mode 100644
index 00000000..d3df3a70
--- /dev/null
+++ b/doc/ref/web/uri-query.texi
@@ -0,0 +1,7 @@
+@node URI Query
+@section (web uri-query)
+
+@defun encode-query-parameters parameters
+Given the association list @var{parameter}, encode it into a query
+string on the form ``key=value&...''.
+@end defun