Now the 'router' library is part of 'wsf'
Move hello_routed_world under tests/dev since it was not really an example, but more a dev workspace/test
This commit is contained in:
@@ -3,8 +3,14 @@
|
||||
|
||||
http_client-safe : c:\_dev\Dev-Process\web-framework\library\client\http_client\http_client-safe.ecf
|
||||
http_client : c:\_dev\Dev-Process\web-framework\library\client\http_client\http_client.ecf
|
||||
eapml-safe : c:\_dev\Dev-Process\web-framework\library\crypto\eapml\eapml-safe.ecf
|
||||
eapml : c:\_dev\Dev-Process\web-framework\library\crypto\eapml\eapml.ecf
|
||||
eel-safe : c:\_dev\Dev-Process\web-framework\library\crypto\eel\eel-safe.ecf
|
||||
eel : c:\_dev\Dev-Process\web-framework\library\crypto\eel\eel.ecf
|
||||
error-safe : c:\_dev\Dev-Process\web-framework\library\error\error-safe.ecf
|
||||
error : c:\_dev\Dev-Process\web-framework\library\error\error.ecf
|
||||
conneg-safe : c:\_dev\Dev-Process\web-framework\library\protocol\CONNEG\conneg-safe.ecf
|
||||
conneg : c:\_dev\Dev-Process\web-framework\library\protocol\CONNEG\conneg.ecf
|
||||
http-safe : c:\_dev\Dev-Process\web-framework\library\protocol\http\http-safe.ecf
|
||||
http : c:\_dev\Dev-Process\web-framework\library\protocol\http\http.ecf
|
||||
http_authorization-safe : c:\_dev\Dev-Process\web-framework\library\server\authentication\http_authorization\http_authorization-safe.ecf
|
||||
@@ -13,8 +19,6 @@ ewsgi-safe : c:\_dev\Dev-Process\web-framework\library\server\ewsgi\ewsgi-safe.e
|
||||
ewsgi : c:\_dev\Dev-Process\web-framework\library\server\ewsgi\ewsgi.ecf
|
||||
ewsgi_spec-safe : c:\_dev\Dev-Process\web-framework\library\server\ewsgi\ewsgi_spec-safe.ecf
|
||||
ewsgi_spec : c:\_dev\Dev-Process\web-framework\library\server\ewsgi\ewsgi_spec.ecf
|
||||
connector-safe : c:\_dev\Dev-Process\web-framework\library\server\ewsgi\connectors\connector-safe.ecf
|
||||
connector : c:\_dev\Dev-Process\web-framework\library\server\ewsgi\connectors\connector.ecf
|
||||
cgi-safe : c:\_dev\Dev-Process\web-framework\library\server\ewsgi\connectors\cgi\cgi-safe.ecf
|
||||
cgi : c:\_dev\Dev-Process\web-framework\library\server\ewsgi\connectors\cgi\cgi.ecf
|
||||
libfcgi-safe : c:\_dev\Dev-Process\web-framework\library\server\ewsgi\connectors\libfcgi\libfcgi-safe.ecf
|
||||
@@ -25,14 +29,12 @@ fcgi-safe : c:\_dev\Dev-Process\web-framework\library\server\libfcgi\fcgi-safe.e
|
||||
fcgi : c:\_dev\Dev-Process\web-framework\library\server\libfcgi\fcgi.ecf
|
||||
libfcgi-safe : c:\_dev\Dev-Process\web-framework\library\server\libfcgi\libfcgi-safe.ecf
|
||||
libfcgi : c:\_dev\Dev-Process\web-framework\library\server\libfcgi\libfcgi.ecf
|
||||
rest-safe : c:\_dev\Dev-Process\web-framework\library\server\request\rest\rest-safe.ecf
|
||||
rest : c:\_dev\Dev-Process\web-framework\library\server\request\rest\rest.ecf
|
||||
router-safe : c:\_dev\Dev-Process\web-framework\library\server\request\router\router-safe.ecf
|
||||
router : c:\_dev\Dev-Process\web-framework\library\server\request\router\router.ecf
|
||||
wsf-safe : c:\_dev\Dev-Process\web-framework\library\server\wsf\wsf-safe.ecf
|
||||
wsf : c:\_dev\Dev-Process\web-framework\library\server\wsf\wsf.ecf
|
||||
cgi-safe : c:\_dev\Dev-Process\web-framework\library\server\wsf\default\cgi-safe.ecf
|
||||
cgi : c:\_dev\Dev-Process\web-framework\library\server\wsf\default\cgi.ecf
|
||||
libfcgi-safe : c:\_dev\Dev-Process\web-framework\library\server\wsf\default\libfcgi-safe.ecf
|
||||
libfcgi : c:\_dev\Dev-Process\web-framework\library\server\wsf\default\libfcgi.ecf
|
||||
nino-safe : c:\_dev\Dev-Process\web-framework\library\server\wsf\default\nino-safe.ecf
|
||||
nino : c:\_dev\Dev-Process\web-framework\library\server\wsf\default\nino.ecf
|
||||
encoder-safe : c:\_dev\Dev-Process\web-framework\library\text\encoder\encoder-safe.ecf
|
||||
|
||||
@@ -11,10 +11,6 @@
|
||||
<assertions precondition="true"/>
|
||||
</option>
|
||||
<library name="base" location="$ISE_LIBRARY\library\base\base-safe.ecf"/>
|
||||
<library name="base_extension" location="$ISE_LIBRARY\library\base_extension\base_extension-safe.ecf"/>
|
||||
<library name="wsf" location="..\..\wsf\wsf-safe.ecf" readonly="false"/>
|
||||
<library name="http" location="..\..\..\protocol\http\http-safe.ecf"/>
|
||||
<library name="uri_template" location="..\..\..\protocol\uri_template\uri_template-safe.ecf" readonly="false"/>
|
||||
<cluster name="src" location="src\" recursive="true"/>
|
||||
</target>
|
||||
</system>
|
||||
|
||||
@@ -11,27 +11,6 @@
|
||||
<assertions precondition="true"/>
|
||||
</option>
|
||||
<library name="base" location="$ISE_LIBRARY\library\base\base.ecf"/>
|
||||
<library name="base_extension" location="$ISE_LIBRARY\library\base_extension\base_extension.ecf"/>
|
||||
<library name="wsf" location="..\..\wsf\wsf.ecf"/>
|
||||
<library name="http" location="..\..\..\protocol\http\http.ecf"/>
|
||||
<library name="uri_template" location="..\..\..\protocol\uri_template\uri_template.ecf"/>
|
||||
<cluster name="src" location="src\" recursive="true"/>
|
||||
</target>
|
||||
<target name="ewsgi_compliant_router">
|
||||
<root all_classes="true"/>
|
||||
<file_rule>
|
||||
<exclude>/.git$</exclude>
|
||||
<exclude>/EIFGENs$</exclude>
|
||||
<exclude>/.svn$</exclude>
|
||||
</file_rule>
|
||||
<option warning="true" full_class_checking="true" syntax="provisional">
|
||||
<assertions precondition="true"/>
|
||||
</option>
|
||||
<library name="base" location="$ISE_LIBRARY\library\base\base.ecf"/>
|
||||
<library name="base_extension" location="$ISE_LIBRARY\library\base_extension\base_extension.ecf"/>
|
||||
<library name="wsf" location="..\..\wsf\wsf.ecf"/>
|
||||
<library name="http" location="..\..\..\protocol\http\http.ecf"/>
|
||||
<library name="uri_template" location="..\..\..\protocol\uri_template\uri_template.ecf"/>
|
||||
<cluster name="src" location="src\" recursive="true"/>
|
||||
</target>
|
||||
</system>
|
||||
|
||||
@@ -6,6 +6,11 @@ It is built on top of [EWSGI](../ewsgi/) to benefit from the various EWSGI conne
|
||||
## Requirements
|
||||
* [EWSGI](../ewsgi)
|
||||
* [HTTP](../../protocol/http)
|
||||
* [URI template](../../protocol/uri_template)
|
||||
|
||||
## Content
|
||||
* Core classes for the Web Server Framework
|
||||
* [Router](router) library
|
||||
|
||||
## Overview
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
This library introduce the notion of router and handler
|
||||
This library introduce the notion of router and handler in the folder "router"
|
||||
The Router manages the association between URI,URI template and Handler
|
||||
The Router is in charge to route/dispatch a request to one of the Handler according to the URI and how the Handler is mapped in the Router.
|
||||
|
||||
@@ -11,4 +11,4 @@ create {REQUEST_URI_TEMPLATE_ROUTER} router.make
|
||||
create {REQUEST_AGENT_HANDLER} hello_handler.make (agent handle_hello)
|
||||
|
||||
router.map ("/hello/{name}", hello_handler)
|
||||
router.map_agent ("/hello/{name}", agent handle_hello)
|
||||
router.map_agent ("/hello/{name}", agent handle_hello)
|
||||
@@ -1,7 +1,6 @@
|
||||
# Router library
|
||||
# Router
|
||||
|
||||
## Requirements
|
||||
* [Web Server Framework](../../wsf)
|
||||
* [URI Template](../../../protocol/rui_template)
|
||||
|
||||
## Overview
|
||||
@@ -10,11 +10,14 @@
|
||||
<option warning="true" full_class_checking="true" is_attached_by_default="true" void_safety="all" syntax="provisional">
|
||||
</option>
|
||||
<library name="base" location="$ISE_LIBRARY\library\base\base-safe.ecf"/>
|
||||
<library name="base_extension" location="$ISE_LIBRARY\library\base_extension\base_extension-safe.ecf"/>
|
||||
<library name="ewsgi" location="..\ewsgi\ewsgi-safe.ecf"/>
|
||||
<library name="time" location="$ISE_LIBRARY\library\time\time-safe.ecf"/>
|
||||
<library name="error" location="..\..\error\error-safe.ecf"/>
|
||||
<library name="http" location="..\..\protocol\http\http-safe.ecf"/>
|
||||
<library name="uri_template" location="..\..\protocol\uri_template\uri_template-safe.ecf"/>
|
||||
<library name="encoder" location="..\..\text\encoder\encoder-safe.ecf"/>
|
||||
<cluster name="src" location=".\src" recursive="true"/>
|
||||
<cluster name="router" location=".\router" recursive="true"/>
|
||||
</target>
|
||||
</system>
|
||||
|
||||
@@ -10,11 +10,14 @@
|
||||
<option warning="true" full_class_checking="true" void_safety="none" syntax="provisional">
|
||||
</option>
|
||||
<library name="base" location="$ISE_LIBRARY/library/base/base.ecf"/>
|
||||
<library name="base_extension" location="$ISE_LIBRARY\library\base_extension\base_extension.ecf"/>
|
||||
<library name="ewsgi" location="..\ewsgi\ewsgi.ecf"/>
|
||||
<library name="time" location="$ISE_LIBRARY\library\time\time.ecf"/>
|
||||
<library name="error" location="..\..\error\error.ecf"/>
|
||||
<library name="http" location="..\..\protocol\http\http.ecf"/>
|
||||
<library name="uri_template" location="..\..\protocol\uri_template\uri_template.ecf"/>
|
||||
<library name="encoder" location="..\..\text\encoder\encoder.ecf"/>
|
||||
<cluster name="src" location=".\src" recursive="true"/>
|
||||
<cluster name="router" location=".\router" recursive="true"/>
|
||||
</target>
|
||||
</system>
|
||||
|
||||
Reference in New Issue
Block a user