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
ac3e969b3c
Added assertions to catch if route mapping does not already exists
2012-02-29 11:27:46 +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
Jocelyn Fiat
e541fdcb0c
fixed compilation
2012-02-15 12:36:57 +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
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
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
2f43660628
Merge branch 'master' of https://github.com/jvelilla/Eiffel-Web-Framework
2012-02-07 15:13:59 +01:00
Jocelyn Fiat
67e6b460b3
removed unwanted set_status_code, since we already use put_header to set the status code.
2012-02-01 16:05:30 +01:00
Jocelyn Fiat
645b35590b
Improved redirect_now_custom to allow custom status code, custom header, and custom content
2012-02-01 10:57:52 +01:00
Jocelyn Fiat
a1354136fa
Fixed usage of lst[] in web form, now we are url-decoding the name because the [] could escaped...
...
Fixed bad code for assertion related to variable url-encoded name
2012-01-31 17:57:59 +01:00
Jocelyn Fiat
945ef79857
added REQUEST_HANDLER_CONTEXT.string_array_path_parameter (...) to help user handling list/array parameters
...
fixed postcondition WSF_REQUEST.set_meta_string_variable ...
2012-01-31 12:12:41 +01:00
Jocelyn Fiat
2c4df29877
Make sure to return a response
...
Added precondition to check URI_TEMPLATE is valid
2012-01-25 16:27:22 +01:00
Jocelyn Fiat
e6687c7791
Fixed wrong assertion, status_committed instead of status_set
2012-01-24 16:47:12 +01:00
Jocelyn Fiat
754d3f670c
Fixed issue with WSF_FILE_RESPONSE not setting the status code
...
Added Last-Modified
2012-01-23 18:20:25 +01:00
Jocelyn Fiat
8e420de8ec
Fixed wrong code for postcondition in unset_orig_path_info
2012-01-23 15:32:11 +01:00
Jocelyn Fiat
6dc1c0d2b0
Removed most of the "retry" in rescue clauses, since it was hidding critical issue.
...
This should be the choice of the application to "retry" on exception, otherwise let the framework handle this in the lower part.
Better handling of response termination (alias commit)
Added the notion of "status_committed"
2012-01-23 15:31:34 +01:00
Jocelyn Fiat
fcdf4e456e
fixed compilation (was not up to date with tests.ecf)
2012-01-20 20:04:56 +01:00
Jocelyn Fiat
abdd68863d
Removed any "format" related query from router lib, this is too application specific to be there.
...
Better handling of base_url for REQUEST_ROUTER
2012-01-20 15:35:03 +01:00
Jocelyn Fiat
1b55b09b64
Fixed WSF_REQUEST.script_url (..) for clean path
...
Added related autotests
2012-01-19 10:25:53 +01:00
Jocelyn Fiat
4cf3393a13
Don't forget to put Content-Length: 0 for redirect without any content
2012-01-17 17:37:26 +01:00
Jocelyn Fiat
4486df14cc
export handler from REQUEST_ROUTER
2012-01-17 07:51:26 -08:00
Jocelyn Fiat
60574ee85f
REQUEST_ROUTER now inherit from ITERABLE [..]
2012-01-17 16:35:52 +01:00
Jocelyn Fiat
7a6c51e47e
Send the Status code, as an header line Status: code reason
2012-01-17 16:34:48 +01:00
Jocelyn Fiat
790aa40591
According to http://www.fastcgi.com/docs/faq.html#httpstatus
...
send the Status code, as an header line Status: code reason
2012-01-17 13:49:04 +01:00
Jocelyn Fiat
e506397406
Do not send any Status line back to the FastCGI client
2012-01-16 13:49:38 +01:00
Jocelyn Fiat
d90ecbd5fe
removed obsolete call on WSF_RESPONSE.write_..' by using the up-to-date WSF_RESPONSE.put_..'
2012-01-09 10:21:35 +01:00
Jocelyn Fiat
20281bc922
HTTP_HEADER: - added put_last_modified
...
- added RFC1123 http date format helper
- added put_cookie_with_expiration_date as DATE_TIME
REQUEST: added `execution_variable' to provide a way to keep object attached to the request
and indexed by a string. A typical usage is a SESSION object
2012-01-06 18:27:52 +01:00
Jocelyn Fiat
83346c92a7
added REQUEST.execution_variables ... to provide a solution to store data during request execution
...
could be used for SESSION, or any "shared" data inside the same Request
2011-12-18 12:57:24 +01:00
Jocelyn Fiat
c8efa04147
Use put_ instead of write_
2011-12-15 23:52:53 +01:00
Jocelyn Fiat
37860f43b5
various minor changes
2011-12-15 23:38:34 +01:00
Jocelyn Fiat
65a998cec3
use /usr/lib/libfcgi.so instead of /usr/local/lib/libfcgi.so
2011-12-15 20:10:31 +01:00
Jocelyn Fiat
7207a021be
Applied renaming from write_ to put_
2011-12-15 19:34:20 +01:00
Jocelyn Fiat
32373addfa
Renamed write_ feature as put_
2011-12-15 19:04:26 +01:00
Jocelyn Fiat
e16f03b1c2
Fixed stupid mistake in {WGI_NINO_INPUT_SREEAM}.end_of_input
2011-12-15 15:36:47 +01:00
Jocelyn Fiat
1698a06ea0
Fixed typo and missing uri_template reference for draft rest library
2011-12-15 14:40:43 +01:00
Jocelyn Fiat
da3594db50
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
2011-12-15 14:10:52 +01:00
Jocelyn Fiat
bfa620eee3
Made DEFAULT_SERVICE_LAUNCHER more flexible for the user.
2011-12-15 13:30:19 +01:00
jvelilla
1423412f31
Update read_trailer feature.
2011-12-15 09:18:37 -03:00
jvelilla
0f51925ec1
Initial implementation of wgi_chunked_input_stream
...
as a wrapper of wgi_input_stream
2011-12-15 08:53:50 -03:00
Jocelyn Fiat
ab5b43d8ef
Forgot to add make_and_launch_with_options to the creation procedures
2011-12-14 15:04:29 +01:00
Jocelyn Fiat
c7366615cf
Added DEFAULT_SERVICE_LAUNCHER.make_and_launch_with_options
...
Added WSF_RESPONSE.redirect_now_with_content (...)
Updated hello_routed_world .. mainly example use to test/develop... not really a nice example
2011-12-14 14:44:06 +01:00
Jocelyn Fiat
f9dfeb0034
added head and bottom value in WSF_FILE_RESPONSE, to enable the user to set a head and bottom part easily
2011-12-13 10:35:49 +01:00
Jocelyn Fiat
5e35bc59a9
avoid infinite rescue due to internal error or user code not dealing well with socket disconnection
2011-12-12 21:19:45 +01:00
Jocelyn Fiat
390c05b056
Break inheritance from WGI_RESPONSE, since it is not flexible for future improvement.
2011-12-12 18:24:46 +01:00
Jocelyn Fiat
0335226e8b
Renamed DEFAULT_SERVICE as DEFAULT_SERVICE_LAUNCHER
2011-12-12 18:17:27 +01:00
Jocelyn Fiat
68e4ac9a8f
Fixed WSF_FILE_RESPONSE
...
and added WSF_FORCE_DOWNLOAD_RESPONSE
2011-12-12 16:20:06 +01:00