From 9ec2baf7d39f6388df7f57796b364b8fd72acd1f Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Thu, 27 Feb 2014 06:39:28 -0800 Subject: [PATCH 1/8] used instead of form (jekill has trouble with it) --- Documentation.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Documentation.md b/Documentation.md index ad1d2494..14145ffe 100644 --- a/Documentation.md +++ b/Documentation.md @@ -14,7 +14,7 @@ The framework also provides a router component to help dispatching the incoming A service can be a web api, a web interface, … what ever run on top of HTTP. - + # Service > see interface: **WSF_SERVICE** @@ -28,7 +28,7 @@ For convenience, the framework provides richer service interface that handles th > [Learn more about service](Documentation__Service) - + # Request and Response > see interface: **WSF_REQUEST** and **WSF_RESPONSE** @@ -50,7 +50,7 @@ The **WSF_RESPONSE** represents the communication toward the client, a service n > [Learn more about request](Documentation__Request) and [about response](Documentation__Response) - + # Connectors: > see **WGI_CONNECTOR** @@ -65,7 +65,7 @@ It is fairly easy to add new connector, it just has to follow the EWSGI interfac > [Learn more about connector](Documentation__Connector) - + # Router or Request Dispatcher: > Routes HTTP requests to the proper execution code @@ -165,10 +165,10 @@ examples ## EWF application generators - + # EWSGI Specification - + # Libraries External libraries are included, such as Cypress OAuth (Security), HTML parsing library, Template Engine Smarty. From fe913b0072ba6242c3e675f218f2bbc7c9fec504 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Thu, 27 Feb 2014 06:48:24 -0800 Subject: [PATCH 2/8] added anchor link for wiki and jekyl engine --- Documentation.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation.md b/Documentation.md index 14145ffe..89c4264c 100644 --- a/Documentation.md +++ b/Documentation.md @@ -15,6 +15,7 @@ The framework also provides a router component to help dispatching the incoming A service can be a web api, a web interface, … what ever run on top of HTTP. + # Service > see interface: **WSF_SERVICE** @@ -29,6 +30,7 @@ For convenience, the framework provides richer service interface that handles th > [Learn more about service](Documentation__Service) + # Request and Response > see interface: **WSF_REQUEST** and **WSF_RESPONSE** @@ -51,6 +53,7 @@ The **WSF_RESPONSE** represents the communication toward the client, a service n > [Learn more about request](Documentation__Request) and [about response](Documentation__Response) + # Connectors: > see **WGI_CONNECTOR** @@ -66,6 +69,7 @@ It is fairly easy to add new connector, it just has to follow the EWSGI interfac > [Learn more about connector](Documentation__Connector) + # Router or Request Dispatcher: > Routes HTTP requests to the proper execution code @@ -166,9 +170,11 @@ examples + # EWSGI Specification + # Libraries External libraries are included, such as Cypress OAuth (Security), HTML parsing library, Template Engine Smarty. From 195f3b4f683952d8475d50df8abc210f89dadfd0 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Wed, 2 Apr 2014 01:51:04 -0700 Subject: [PATCH 3/8] Updated Documentation__Request (markdown) --- Documentation__Request.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Documentation__Request.md b/Documentation__Request.md index 09b73ab0..e1286fed 100644 --- a/Documentation__Request.md +++ b/Documentation__Request.md @@ -1 +1,10 @@ -See WSF_REQUEST \ No newline at end of file +See WSF_REQUEST + +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]` +- `?tab[a]=ewf&tab[b]=demo` : will create a WSF_TABLE parameter with name **tab** and value `{ "a": "ewf", "b": "demo"}` +- `?tab[]=ewf&tab[]=demo` : will create a WSF_TABLE parameter with name **tab** and value `{ "1": "ewf", "2": "demo"}` +- `?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. \ No newline at end of file From e687affd17b53b5492875ce29d0a74c3a4de3e2a Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Wed, 2 Apr 2014 01:52:00 -0700 Subject: [PATCH 4/8] Updated Documentation__Request (markdown) --- Documentation__Request.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation__Request.md b/Documentation__Request.md index e1286fed..b7d4cdda 100644 --- a/Documentation__Request.md +++ b/Documentation__Request.md @@ -2,9 +2,9 @@ See WSF_REQUEST 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]` -- `?tab[a]=ewf&tab[b]=demo` : will create a WSF_TABLE parameter with name **tab** and value `{ "a": "ewf", "b": "demo"}` -- `?tab[]=ewf&tab[]=demo` : will create a WSF_TABLE parameter with name **tab** and value `{ "1": "ewf", "2": "demo"}` -- `?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**. +- `?q=a&q=b` : will create a **WSF_MULTIPLE_STRING** parameter with name **q** and value `[a,b]` +- `?tab[a]=ewf&tab[b]=demo` : will create a **WSF_TABLE** parameter with name **tab** and value `{ "a": "ewf", "b": "demo"}` +- `?tab[]=ewf&tab[]=demo` : will create a **WSF_TABLE** parameter with name **tab** and value `{ "1": "ewf", "2": "demo"}` +- `?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. \ No newline at end of file From 2100b856b0ab45db50c3f6476f20b59547445398 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Wed, 2 Apr 2014 01:52:31 -0700 Subject: [PATCH 5/8] Updated Documentation__Request (markdown) --- Documentation__Request.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation__Request.md b/Documentation__Request.md index b7d4cdda..65bf60b5 100644 --- a/Documentation__Request.md +++ b/Documentation__Request.md @@ -2,9 +2,9 @@ See WSF_REQUEST 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]` -- `?tab[a]=ewf&tab[b]=demo` : will create a **WSF_TABLE** parameter with name **tab** and value `{ "a": "ewf", "b": "demo"}` -- `?tab[]=ewf&tab[]=demo` : will create a **WSF_TABLE** parameter with name **tab** and value `{ "1": "ewf", "2": "demo"}` -- `?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**. +- `q=a&q=b` : will create a **WSF_MULTIPLE_STRING** parameter with name **q** and value `[a,b]` +- `tab[a]=ewf&tab[b]=demo` : will create a **WSF_TABLE** parameter with name **tab** and value `{ "a": "ewf", "b": "demo"}` +- `tab[]=ewf&tab[]=demo` : will create a **WSF_TABLE** parameter with name **tab** and value `{ "1": "ewf", "2": "demo"}` +- `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. \ No newline at end of file From 7f3ece2da9ef5cebfb048a753e7e8def8c3e6e44 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Thu, 17 Apr 2014 07:23:33 -0700 Subject: [PATCH 6/8] Updated Documentation__Request (markdown) --- Documentation__Request.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Documentation__Request.md b/Documentation__Request.md index 65bf60b5..90c093bd 100644 --- a/Documentation__Request.md +++ b/Documentation__Request.md @@ -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]` @@ -7,4 +8,10 @@ for instance - `tab[]=ewf&tab[]=demo` : will create a **WSF_TABLE** parameter with name **tab** and value `{ "1": "ewf", "2": "demo"}` - `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. \ No newline at end of file +Those rules are applied to query, post, path, .... parameters. + +== How to get the input data (i.e entity-body) ?== +See {WSF_REQUEST}.read_input_data_into (buf: STRING) + +== How to get the raw header data (i.e the http header text) ?== +See {WSF_REQUEST}.raw_header_data: detachable READABLE_STRING_32 From d089921ef585f2ec60c66b583eed5ba860b1a017 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Thu, 17 Apr 2014 07:23:54 -0700 Subject: [PATCH 7/8] Updated Documentation__Request (markdown) --- Documentation__Request.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation__Request.md b/Documentation__Request.md index 90c093bd..e7719509 100644 --- a/Documentation__Request.md +++ b/Documentation__Request.md @@ -1,6 +1,6 @@ See WSF_REQUEST -== About parameters == +## 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]` @@ -10,8 +10,8 @@ for instance Those rules are applied to query, post, path, .... parameters. -== How to get the input data (i.e entity-body) ?== +## How to get the input data (i.e entity-body) ? See {WSF_REQUEST}.read_input_data_into (buf: STRING) -== How to get the raw header data (i.e the http header text) ?== +## How to get the raw header data (i.e the http header text) ? See {WSF_REQUEST}.raw_header_data: detachable READABLE_STRING_32 From 9db9a4957acb25698a4f71e55c9735b8e9f09b74 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Thu, 17 Apr 2014 07:24:13 -0700 Subject: [PATCH 8/8] Updated Documentation__Request (markdown) --- Documentation__Request.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation__Request.md b/Documentation__Request.md index e7719509..379df595 100644 --- a/Documentation__Request.md +++ b/Documentation__Request.md @@ -11,7 +11,7 @@ for instance Those rules are applied to query, post, path, .... parameters. ## How to get the input data (i.e entity-body) ? -See {WSF_REQUEST}.read_input_data_into (buf: STRING) +See `{WSF_REQUEST}.read_input_data_into (buf: STRING)` ## How to get the raw header data (i.e the http header text) ? -See {WSF_REQUEST}.raw_header_data: detachable READABLE_STRING_32 +See `{WSF_REQUEST}.raw_header_data: detachable READABLE_STRING_32`