Jocelyn Fiat
71d5dc4795
Moved mime handler classes under wsf/src/mime/
2012-03-20 08:38:38 +01:00
Jocelyn Fiat
3f0b745ecc
removed unwanted rescue clause
2012-03-19 15:20:29 +01:00
Jocelyn Fiat
3432e2d8b2
Updating EWSGI specification classes
2012-03-19 15:06:50 +01:00
Jocelyn Fiat
fea0f115a0
Removed WGI_RESPONSE.write (..)
...
Replaced any internal call to WGI_RESPONSE.write () by the associated implementation (i.e output.put_string (...) )
Added WGI_OUTPUT_STREAM.put_crlf
Renamed WSF_RESPONSE.put_response (a_message) as `send (a_message)'
WSF_RESPONSE_MESSAGE.send_to (res) is now exported only to WSF_RESPONSE
2012-03-19 14:52:12 +01:00
Berend de Boer
84a12447db
Avoid another indirection.
2012-03-19 14:02:13 +01:00
Berend de Boer
876f9e02b7
status must be set, else WGI_SERVICE.execute will report the
...
postcondition violation.
Conflicts:
library/server/wsf/router/wsf_handler.e
2012-03-19 13:58:17 +01:00
Berend de Boer
e5323dd208
Minor code cleanup/typo fix.
2012-03-19 13:54:48 +01:00
Berend de Boer
77834a3dd8
Move wgi_service spec to its own directory else I get a class
...
conflicts with compile_ise.ecf generated by gexace.
2012-03-19 13:54:34 +01:00
Jocelyn Fiat
4906345a62
Improved comment in WSF_RESPONSE.put_response (..)
...
Added WSF_REDIRECTION_RESPONSE class
2012-03-19 12:32:12 +01:00
Jocelyn Fiat
487487ad44
Added WSF_RESPONSE_HANDLER based on WSF_RESPONSE_MESSAGE
...
The descendant has to implement the function
response (ctx: C; req: WSF_REQUEST): WSF_RESPONSE_MESSAGE
Added related features and class in WSF_ROUTER to be able to use agent easily.
2012-03-19 12:04:46 +01:00
Jocelyn Fiat
ef5ba19c46
Refactored WSF_HANDLER_CONTEXT
...
- removed path_parameter
- added `item' to include WSF_REQUEST.item
- marked obsolete `parameter'
The goal is to remove confusion, remove URI_TEMPLATE specific `path_parameter'
and provide a way to use ctx.item (..) to also include meta variable, query, form, ... items
2012-03-19 10:21:29 +01:00
Jocelyn Fiat
b05ff01262
Use local variable to speed up access to `input'
2012-03-19 10:12:06 +01:00
Jocelyn Fiat
9f1940c46d
Applied wsf_extension creation, and classes moved from wsf to wsf_extension
2012-03-16 15:17:22 +01:00
Jocelyn Fiat
f69ff42564
Created wsf_extension, and moved some classes from wsf to wsf_extension
...
WSF_HANDLER_HELPER
WSF_RESOURCE_HANDLER_HELPER
WSF_HANDLER_ROUTES_RECORDER
2012-03-16 14:12:02 +01:00
Jocelyn Fiat
eb3e9f2186
applied removal of HTTP_HEADER.put_status (..)
2012-03-16 13:53:22 +01:00
Jocelyn Fiat
03b10bdc14
Removed HTTP_HEADER.put_status (...)
...
It is not recommended to send the status code as part of the HTTP Header,
so let's remove this ambiguity and do not encourage EWF user to use it
2012-03-16 13:35:52 +01:00
Jocelyn Fiat
46eb92ac37
Major renaming, adopt the WSF_ prefix for all classes under "wsf", and simplify some class names
...
Removed in WGI_INPUT_STREAM, the assertion "same_last_string_reference"
Copyright updates
2012-03-16 09:49:41 +01:00
Jocelyn Fiat
25218996e0
Fixed compilation of draft/library/server/request/rest/tests/..
...
Note the "rest" library will not be maintained since this is not REST.
2012-03-14
2012-03-13 18:41:32 +01:00
Jocelyn Fiat
68dbbdea9f
precise that library/server/request/router is now part of "wsf" library and not anymore independant library.
2012-03-13 18:09:16 +01:00
Jocelyn Fiat
5abc79b7c3
Nino connector:
...
- fixed issue related to `ready_for_reading' now use the `try_...' variant
- for now Nino does not support persistent connection, then we have to respond with "Connection: close"
REQUEST_FILE_SYSTEM_HANDLER:
- added not_found_handler and access_denied_handler, so that the user can customize related response
WSF_REQUEST and WSF_VALUE:
- modified how uploaded file are handled, fixed various issues, and added WSF_UPLOADED_FILE (it is a WSF_VALUE)
WSF_VALUE:
- added change_name (a_name: like name)
- added url_encoded_name to other WSF_values
WSF_REQUEST:
- added `destroy' to perform end of request cleaning (such as deleting temp uploaded files)
- renamed `raw_post_data_recorded' as `raw_input_data_recorded', and related feature
- do not store the RAW_POST_DATA in meta variable anymore, but in WSF_REQUEST.raw_input_data is asked
Added WSF_HTML_PAGE_RESPONSE to help user
WSF_REPONSE.redirect_... now use "temp_redirect" as default
instead of "moved_permanently" which is specific usage
Removed many obsolete features.
2012-03-13 18:07:28 +01:00
Jocelyn Fiat
c5fe539acb
use https:// url for git submodules
2012-02-29 17:23:34 +01:00
Jocelyn Fiat
ac3e969b3c
Added assertions to catch if route mapping does not already exists
2012-02-29 11:27:46 +01:00
Jocelyn Fiat
98f2efbd68
Merging changes from Javier
...
Updated restbucksCRUD example, and related class in wsf/router
2012-02-28 09:23:09 +01:00
Jocelyn Fiat
7314e92fe6
Synchronized with nino and json library
2012-02-28 09:20:08 +01:00
jvelilla
468b2851be
Refactor REQUEST_RESOURCE_HANDLER_HELPER to figure out the
...
transfer encoding: Chunked.
Added a new method to retrieve_data independently if the
transfer is chunked or not.
Updated ORDER_HANLDER to use this new feature.
Sync with Jocelyn repo
2012-02-17 08:48:27 -03:00
jvelilla
f1fe5464c6
Merge branch 'master' of git://github.com/jocelyn/Eiffel-Web-Framework
2012-02-17 07:28:57 -03:00
Jocelyn Fiat
d621987020
Minor correction, to avoid returning 200 as status code, when the client can not connect
2012-02-16 10:32:24 +01:00
Jocelyn Fiat
e541fdcb0c
fixed compilation
2012-02-15 12:36:57 +01:00
Jocelyn Fiat
5950d768c9
sync with cURL library
2012-02-15 11:58:32 +01:00
Jocelyn Fiat
413fdaf6cd
Fixed error visitor due to recent signature changes
2012-02-15 11:33:39 +01:00
Jocelyn Fiat
9138ffedfb
renamed (add|remove)_synchronized_handler as (add|remove)_synchronization
2012-02-15 11:07:12 +01:00
Jocelyn Fiat
72cc05532c
Removed tests target from encoder(-safe).ecf
...
(now there is a tests-safe.ecf in folder tests)
2012-02-15 11:04:42 +01:00
Jocelyn Fiat
145b129b28
Fixed ERROR_HANDLER.destroy
...
Fixed and export ERROR_HANDLER.remove_synchronized_handler
Added comments
Added associated autotests
2012-02-15 11:03:30 +01:00
Jocelyn Fiat
fbec89f354
Better signature for encoders
...
Split library .ecf and the autotest .ecf
2012-02-14 18:03:42 +01:00
Jocelyn Fiat
f59d5cac32
added postcondition to ensure the body string set to the response, is the same reference
...
this is important, since sometime we just do
rep.set_body (s)
s.append_string ("..")
2012-02-14 18:02:14 +01:00
Jocelyn Fiat
4bb8a71c1b
Added DEBUG_OUTPUT to ERROR, since this is convenient during debugging
2012-02-14 18:01:17 +01:00
Jocelyn Fiat
dd6b74326e
Added notion of synchronization between error handler
...
this is convenient to integrate two components using their own ERROR_HANDLER (not sharing the same object)
2012-02-14 12:57:01 +01:00
Jocelyn Fiat
e52cd6b352
use WSF_PAGE_RESPONSE, instead of reimplementing it ourself
2012-02-14 10:20:15 +01:00
Jocelyn Fiat
537bd8241f
added a JSON encoder test case
2012-02-13 14:38:13 +01:00
Jocelyn Fiat
040c1d1c10
Merge pull request #9 from oligot/fix-libfcgi-location
...
[FIX] libfcgi.so location
2012-02-13 03:21:29 -08:00
Olivier Ligot
f3c779cf6e
[FIX] libfcgi.so location
...
On Ubuntu 10.04 LTS, libfcgi.so is in /usr/lib instead of /usr/local/lib
2012-02-10 14:01:04 +01:00
Jocelyn Fiat
6cf35e90c6
added a case in test_json_encoder
2012-02-08 21:36:49 +01:00
unknown
497fe03d38
libcurl: Applied a workaround to avoid issue on Win32 (see LIBCURL_HTTP_CLIENT_REQUEST.apply_workaround)
...
Separated the http_client-safe.ecf and test-safe.ecf
Added HTTP_CLIENT_SESSION.set_max_redirects
Fixed broken test due to formatting trouble.
2012-02-08 21:32:25 +01:00
Jocelyn Fiat
ca3a520bb9
fixed http_client tests
2012-02-08 16:36:54 +01:00
jvelilla
3c755019aa
Updated content
2012-02-08 08:47:39 -03:00
Jocelyn Fiat
3a9b67c8ad
Better code to test similar functions but with chunked input
2012-02-07 16:05:19 +01:00
Jocelyn Fiat
e21da4a591
Improved the WSF_PAGE_RESPONSE to be more flexible and allow to change some values as expected.
2012-02-07 15:49:02 +01:00
Jocelyn Fiat
69bc4d568c
Added support for chunked input data (see Transfer-Encoding: chunked)
2012-02-07 15:47:55 +01:00
Jocelyn Fiat
cf8d25c4e5
Added HTTP_HEADER.append_header_object and append_array.
...
This is helpful to "merge" two HTTP_HEADER and provide user friendly features
2012-02-07 15:45:44 +01:00
Jocelyn Fiat
2b9ca86501
Added proxy, at least to make it is possible to use http://fiddler2.com/ to inspect the traffic.
2012-02-07 15:44:45 +01:00