Skip to content

Commit fdfeea5

Browse files
committed
2 parents 99d0340 + 9db9a49 commit fdfeea5

File tree

2 files changed

+29
-7
lines changed

2 files changed

+29
-7
lines changed

doc/wiki/Documentation.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ The framework also provides a router component to help dispatching the incoming
1414

1515
A service can be a web api, a web interface, … what ever run on top of HTTP.
1616

17-
<a name="wiki-service"/>
17+
<a name="wiki-service"></a>
18+
<a name="service"></a>
1819
# Service
1920
> see interface: **WSF_SERVICE**
2021
@@ -28,7 +29,8 @@ For convenience, the framework provides richer service interface that handles th
2829

2930
> [Learn more about service](Documentation__Service)
3031
31-
<a name="wiki-request"/><a name="wiki-response"/><a name="wiki-request-and-response"/>
32+
<a name="wiki-request"></a><a name="wiki-response"></a><a name="wiki-request-and-response"></a>
33+
<a name="request"></a><a name="response"></a><a name="request-and-response"></a>
3234
# Request and Response
3335
> see interface: **WSF_REQUEST** and **WSF_RESPONSE**
3436
@@ -50,7 +52,8 @@ The **WSF_RESPONSE** represents the communication toward the client, a service n
5052

5153
> [Learn more about request](Documentation__Request) and [about response](Documentation__Response)
5254
53-
<a name="wiki-connector"/>
55+
<a name="wiki-connector"></a>
56+
<a name="connector"></a>
5457
# Connectors:
5558
> see **WGI_CONNECTOR**
5659
@@ -65,7 +68,8 @@ It is fairly easy to add new connector, it just has to follow the EWSGI interfac
6568

6669
> [Learn more about connector](Documentation__Connector)
6770
68-
<a name="wiki-router"/>
71+
<a name="wiki-router"></a>
72+
<a name="router"></a>
6973
# Router or Request Dispatcher:
7074
> Routes HTTP requests to the proper execution code
7175
@@ -165,10 +169,12 @@ examples
165169
## EWF application generators
166170

167171

168-
<a name="wiki-EWSGI"/>
172+
<a name="wiki-EWSGI"></a>
173+
<a name="EWSGI"></a>
169174
# EWSGI Specification
170175

171-
<a name="wiki-libraries"/>
176+
<a name="wiki-libraries"></a>
177+
<a name="libraries"></a>
172178
# Libraries
173179

174180
External libraries are included, such as Cypress OAuth (Security), HTML parsing library, Template Engine Smarty.

doc/wiki/Documentation__Request.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
1-
See WSF_REQUEST
1+
See WSF_REQUEST
2+
3+
## About parameters
4+
Note that by default there is a smart computation for the query/post/... parameters:
5+
for instance
6+
- `q=a&q=b` : will create a **WSF_MULTIPLE_STRING** parameter with name **q** and value `[a,b]`
7+
- `tab[a]=ewf&tab[b]=demo` : will create a **WSF_TABLE** parameter with name **tab** and value `{ "a": "ewf", "b": "demo"}`
8+
- `tab[]=ewf&tab[]=demo` : will create a **WSF_TABLE** parameter with name **tab** and value `{ "1": "ewf", "2": "demo"}`
9+
- `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**.
10+
11+
Those rules are applied to query, post, path, .... parameters.
12+
13+
## How to get the input data (i.e entity-body) ?
14+
See `{WSF_REQUEST}.read_input_data_into (buf: STRING)`
15+
16+
## How to get the raw header data (i.e the http header text) ?
17+
See `{WSF_REQUEST}.raw_header_data: detachable READABLE_STRING_32`

0 commit comments

Comments
 (0)