aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDrahflow <drahflow@gmx.de>2015-07-16 01:08:45 +0200
committerDrahflow <drahflow@gmx.de>2015-07-16 01:08:45 +0200
commitee5c6279156a57526671590def0e349cca1db128 (patch)
tree988e7386c2b11caccf4e34ecdd280bdd78fbaaee /doc
parent3c69504a816f3e881e759b8da547e040863ec820 (diff)
Handly POST better (but still slow)
Diffstat (limited to 'doc')
-rw-r--r--doc/server.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/server.md b/doc/server.md
index 2f1062f..c235131 100644
--- a/doc/server.md
+++ b/doc/server.md
@@ -114,8 +114,11 @@ net .alg .httpServer
--------------------
This is not yet a full featured HTTP server, but works a little bit.
-It is based on `net .alg .bufferedEpollServer` and takes the same options.
-However, you are not supposed to provide an `accept`, but instead
+It is based on `net .alg .bufferedEpollServer` and takes all options of the former.
+Additionally `inputBufferLimit` also exists, which puts a limit on the
+total request size (including request body).
+
+You are not supposed to provide an `accept`, but instead
call `request` to provide a function which handles the requests.
net .alg .httpServer "+" via
@@ -127,6 +130,7 @@ call `request` to provide a function which handles the requests.
:method dump
:url dump
:args keys dump
+ :body dump
"<html><body>O hi!</body></html>" "text/html" :ok
} +request
+run