Updated Documentation__Request (markdown)

This commit is contained in:
Jocelyn Fiat
2014-04-17 07:23:33 -07:00
parent 2100b856b0
commit 7f3ece2da9

View File

@@ -1,5 +1,6 @@
See WSF_REQUEST
== About parameters ==
Note that by default there is a smart computation for the query/post/... parameters:
for instance
- `q=a&q=b` : will create a **WSF_MULTIPLE_STRING** parameter with name **q** and value `[a,b]`
@@ -8,3 +9,9 @@ for instance
- `tab[foo]=foo&tab[foo]=bar` : will create a **WSF_TABLE** parameter with name **tab** and value `{ "foo": "bar"}` **WARNING: only the last `tab[foo]` is kept**.
Those rules are applied to query, post, path, .... parameters.
== How to get the input data (i.e entity-body) ?==
See <eiffel>{WSF_REQUEST}.read_input_data_into (buf: STRING)
== How to get the raw header data (i.e the http header text) ?==
See <eiffel>{WSF_REQUEST}.raw_header_data: detachable READABLE_STRING_32