Jocelyn Fiat
e01c5bec57
Reviewed the semantic of the handler context.
...
Adapted existing code to fit the new router design.
2012-09-27 15:09:41 +02:00
Jocelyn Fiat
94a91fa4aa
added missing wsf_routing_filter
2012-09-26 09:45:33 +02:00
Jocelyn Fiat
28186efbe7
Applied new ROUTER design to the whole EWF project.
2012-09-25 23:18:17 +02:00
Jocelyn Fiat
0503e63209
Minor implementation changes (feature renaming, ... )
2012-09-19 10:50:38 +02:00
Jocelyn Fiat
ace897ea2b
New ROUTER design, much simpler, less generic, easier to extend, and now one can mix uri map, uri_template map and so on.
...
Update the "tutorial" example.
2012-09-19 10:50:27 +02:00
Jocelyn Fiat
0f59535696
Added general_encoded_string (..) that accepts READABLE_STRING_GENERAL
2012-09-11 20:53:13 +02:00
Jocelyn Fiat
795f82d51f
added WSF_VALUE.is_empty: BOOLEAN
2012-09-10 16:28:25 +02:00
Jocelyn Fiat
fbd9cb9588
Added `HTML_ENCODER.general_encoded_string (s: READABLE_STRING_GENERAL): STRING_8'
...
(note: probably we should do similar change for all the encoders)
2012-09-10 09:36:27 +02:00
Jocelyn Fiat
0d8363aa3f
Fixed issue when applying URI_TEMPLATE result to WSF_REQUEST to populate path_parameters', now if we have table parameter for foo[]' .. we ignore any string parameter with same name `foo'
...
Also fixed issue where the encoded name were changed later, since it kept the same string reference.
Added `WSF_REQUEST.is_post_request_method: BOOLEAN' and `WSF_REQUEST.is_get_request_method: BOOLEAN' to ease app code
2012-09-10 09:35:47 +02:00
Jocelyn Fiat
153a853df5
Added `WSF_TABLE.is_empty: BOOLEAN'
...
Added `WSF_TABLE.as_array_of_string: detachable ARRAY [READABLE_STRING_32]'
2012-09-10 09:31:27 +02:00
Jocelyn Fiat
45daa731cf
Added put_expires_string (s: STRING) and put_expires_date (dt: DATE_TIME)
...
Better implementation for WSF_FILE_RESPONSE (added last modified, and other caching related info)
2012-09-10 09:27:32 +02:00
Olivier Ligot
7ba863f43c
Merge remote-tracking branch 'upstream/master' into filter
2012-09-05 14:08:41 +02:00
Jocelyn Fiat
bd15133e2b
Also convert from STRING_8 to URI_TEMPLATE (not only from READABLE_STRING_8)
2012-08-31 07:03:15 +02:00
Olivier Ligot
74334e665d
[ADD] Filter: pre-process incoming data and post-process outgoing data
...
Filters are part of a filter chain, thus following the chain of responsability
design pattern.
More information are available in library/server/wsf/src/filter/README.md
2012-08-10 10:09:59 +02:00
Jocelyn Fiat
0665085eee
updated to use WSF_STRING.value instead of obsolete WSF_STRING.string
2012-06-29 10:48:21 +02:00
Jocelyn Fiat
3389973a75
More flexible signature to allow detachable READABLE_STRING_8
...
Signed-off-by: Colin Adams <colinpauladams@gmail.com >
2012-06-15 16:28:01 +02:00
Jocelyn Fiat
0203e0fdc7
Moved eel and eapml under the contrib folder.
2012-06-15 14:24:23 +02:00
Jocelyn Fiat
12d56861e6
Fixing wrong path for ewsgi connector nino
...
(this was introduced recently when we moved folder location)
2012-06-15 14:15:44 +02:00
Jocelyn Fiat
23de980e57
added methods_head_get_post and methods_head_get
2012-06-15 10:54:53 +02:00
Jocelyn Fiat
ad5fed84ca
Fixed previous commit where nino .ecf path was empty.
2012-06-15 10:53:32 +02:00
Jocelyn Fiat
3702842337
Updated structure of EWF, applied
...
Now "nino" is under contrib/library/network/server/nino (as git merge subtree, and not anymore as submodule)
2012-06-14 13:35:08 +02:00
Jocelyn Fiat
2b730186a2
Fixing issue with HEAD and make_from_iterable
2012-06-14 12:28:52 +02:00
Jocelyn Fiat
db448001a1
Change structure of EWF, to follow better categorization
2012-06-13 22:32:17 +02:00
Jocelyn Fiat
8a58d62a7e
Adopted convention name and value or values for WSF_VALUE and descendant (WSF_STRING ...)
...
kept `key' as redirection, and also string as obsolete redirection.
Router: provide a way to pass the request methods without using manifest string, thanks to WSF_ROUTER_METHODS
so instead of using manifest array or manifest strings, just create an instance of WSF_ROUTER_METHODS
for convenience, WSF_ROUTER provides a few `methods_...' returning prebuilt WSF_ROUTER_METHODS objects
Improved code related to unicode handling in URL, and parameters (before the framework was doing too much)
2012-06-11 14:58:13 +02:00
Jocelyn Fiat
0d5011b03e
Added html encoding facility to WSF_STRING
...
Added WSF_STRING.is_empty
Improved HTML_ENCODER to be able to decode a STRING_8 or STRING_32 using general_decoded_string (s)
Improved tutorial example
Added precompilation for WSF library
Cosmetic (removed unused locals)
2012-05-30 09:36:55 +02:00
Jocelyn Fiat
445a27ddf8
Now inherit create_router ; but it is still possible to redefine it.
...
Added some wsf_reponse_message for redirection
Use "found" for the redirec_now ...
Added content to the tutorial
2012-05-28 10:54:05 +02:00
Jocelyn Fiat
171be24d2a
Better us OK status for redirection by default
2012-05-25 23:56:10 +02:00
Jocelyn Fiat
03bf467ee5
Added descriptions to WSF_RESPONSE about .send (mesg)
...
Fixed minor issues in other classes
2012-05-25 23:51:59 +02:00
Jocelyn Fiat
6cff00428b
Protected export of WSF_RESPONSE_MESSAGE.send_to
...
Added WSF_DEFAULT_RESPONSE_SERVICE
Added simple WSF_SERVICE_LAUNCHER_OPTIONS_FROM_INI class to load launch option from ini file.
Removed a few obsolete features
2012-05-25 20:17:55 +02:00
Jocelyn Fiat
f07fbbe450
Merge branch 'master' of github.com:EiffelWebFramework/EWF
2012-05-25 17:49:54 +02:00
Jocelyn Fiat
00a88e98e5
Updated indexing notes
...
started tutorial
Sync
2012-05-25 17:47:43 +02:00
Jocelyn Fiat
f1498e2a07
http_client PUT uploaded data is not correctly implemented using libcurl
...
so for now, let's use a real temporary file to use the upload filename implementation
2012-05-23 23:17:50 +02:00
Berend de Boer
2ff3cff70f
Do not use 307 but 302 response
2012-05-21 17:18:12 +02:00
Jocelyn Fiat
ddd9eb646d
removed commented lines
2012-05-14 22:07:48 +02:00
Jocelyn Fiat
c3c27c5027
Rather use (READABLE_)STRING_GENERAL for argument instead of _8 or _32 variant
...
Better design to set the WSF_REQUEST.path_parameters
especially handle the case where the request goes trought more than one route (could be the case when using WSF_ROUTING_HANDLER)
2012-05-14 18:12:28 +02:00
Jocelyn Fiat
64eebd32db
Updated URI Template to follow official RFC6570
2012-05-14 18:11:12 +02:00
Jocelyn Fiat
278a71eaaf
Reviewed WSF_REQUEST.item (..) and items to look into Form, Query, and Path (cookie are excluded for security)
...
Added WSF_REQUEST.path_parameter (a_name): detachable WSF_VALUE
- fill path_parameters using `import_raw_path_parameters"
when executing the route
- reset to previous value with reset_path_parameters (..),
just in case the request is executed via severals routes.
2012-05-07 23:16:52 +02:00
Jocelyn Fiat
e615026520
Reverted back to export upload_data and upload_filename to ANY (and related features)
2012-05-04 13:45:17 +02:00
Jocelyn Fiat
3a979915f5
Removed HTTP_CLIENT_SESSION.post_multipart .. because it was not doing what the name might evoque
...
Restrict export of HTTP_CLIENT_REQUEST_CONTEXT.upload_data and upload_filename (and related) to .._SESSION and .._REQUEST
this is mainly internal data, and is more about implementation than interface
2012-05-04 12:37:51 +02:00
Jocelyn Fiat
4508a76683
Now the http_client will send the form parameters urlencoded if this is possible (instead of multipart form data)
...
Note for now, the library does not support sending file and form parameters at the same time.
2012-05-04 12:23:37 +02:00
Jocelyn Fiat
eb04ac5405
Improved the libcurl implementation of http_client by adding HTTP_CLIENT_SESSION.is_debug: BOOLEAN
...
if True, this display verbose debug information in console
Implemented uploading of file for PUT and POST requests
Refactored LIBCURL_HTTP_CLIENT_REQUEST to free used pointer, and also ease extension of the class if needed.
Updated cURL library with addition of {CURL_EXTERNALS}.slist_free_all (..)
2012-05-03 16:21:42 +02:00
Jocelyn Fiat
31cf64f4ad
do not use implicit conversion from HTTP_CONTENT_TYPE
2012-05-02 19:25:14 +02:00
Jocelyn Fiat
face4550f2
Fixed wrong signature should be READABLE_STRING_32 instead of _8
2012-05-02 19:22:39 +02:00
Jocelyn Fiat
ee0e3df05f
Also removing the implicit conversion from STRING to HTTP_*_TYPE
2012-05-02 11:40:23 +02:00
Jocelyn Fiat
18ced46c99
Removed implicit conversion from HTTP_CONTENT_TYPE to STRING_8
...
because it could be a source of bug due to hidden conversion (and parameters)
Applied changes to autotest cases
Cosmetic
2012-05-02 11:35:53 +02:00
Jocelyn Fiat
7c95e514ad
Added comments
...
Added `url' to compute the url from base_url, path and query parameters
2012-04-30 15:54:21 +02:00
Jocelyn Fiat
e304113984
Fixed error in URL encoding, according to the RFC3986, space should not be encoded with '+' but with percent encoding.
2012-04-30 15:53:44 +02:00
Jocelyn Fiat
07b3eddefe
Fixed signature issue, the argument `name' should be READABLE_STRING_32
2012-04-30 15:51:10 +02:00
Jocelyn Fiat
dc2e535fe8
Code cleaning
2012-04-30 15:49:35 +02:00
Jocelyn Fiat
bd33aabd93
Added specific helper function related to `charset' parameter
2012-04-30 15:49:24 +02:00