Jocelyn Fiat
e3597c0f3b
fixed typo
2011-11-18 14:18:30 +01:00
Jocelyn Fiat
49c3e8e789
Renamed "ext" folder as "contrib" folder and reorganized a little bit
...
Renamed any *_APPLICATION as *_SERVICE
mainly because those components
such as WSF_APPLICATION, renamed as WSF_SERVICE
are not always the main application entry, and "service" describe them better
Minor implementation change in WSF_REQUEST
Cosmetics
2011-11-17 15:50:30 +01:00
Jocelyn Fiat
a76eb75267
removed unused local variables
2011-11-16 07:25:29 +01:00
Jocelyn Fiat
955f73dee9
Added various README.md (using the markdown syntax)
2011-11-14 19:00:00 +01:00
Jocelyn Fiat
13b09adc8c
Changed the WGI_INPUT_STREAM and WGI_OUTPUT_STREAM interfaces
...
main changes for existing code `read_stream' is renamed `read_string'
2011-11-14 14:17:41 +01:00
Jocelyn Fiat
7669ccfc1d
sync with nino and applied changes to connector
2011-11-04 20:21:35 +01:00
Jocelyn Fiat
3a6e3592ae
Use recent changes from Nino, to get access to the launched and port information.
...
Quite useful when launching using port=0 to use a random free port.
This is great for testing, this way we can run many tests in the same time without any port blocking.
2011-11-04 12:15:40 +01:00
Jocelyn Fiat
07f9a8cec7
applied recent changes from Nino
2011-11-03 18:50:19 +01:00
Jocelyn Fiat
214255c4b9
sync with submodules
2011-11-02 13:30:35 +01:00
Jocelyn Fiat
fb7854fbcc
Added visitor patterns to WSF_VALUE
...
Handling UTF-8 unencoding for WSF_VALUE ...
Added WSF_TABLE_VALUE to handle list[]=a&list[]=b ...
Library encoder: added UTF8 facilities
2011-10-24 17:23:36 +02:00
Jocelyn Fiat
14a2c01f41
Applied recent changes on WGI_ and WSF_
...
Moved classes away from ewsgi, restructured, cleaned
2011-10-21 16:58:23 +02:00
Jocelyn Fiat
79e12b8d04
Continued reducing WGI and move implementation to WSF (Web Server Framework)
...
Removed many usage of READABLE_STRING_GENERAL in favor to READABLE_STRING_8
to avoid potential nasty issues in user's code
URI-template is working only with STRING_8, then changed any _GENERAL or _STRING_32 to _STRING_8
2011-10-21 16:58:18 +02:00
Jocelyn Fiat
aec0136739
First try to get a limited WGI_ and use WSF_ as default framework
2011-10-21 16:58:11 +02:00
Jocelyn Fiat
c3f5376ef5
fixed cgi and libfcgi connectors due to recent changes from WGI_APPLICATION
2011-10-14 14:27:54 +02:00
Jocelyn Fiat
21e973f8a4
Removed handling of internal error from WGI_APPLICATION
...
And for now added it into nino connector
2011-10-14 14:15:23 +02:00
Jocelyn Fiat
035a133b5b
Addition to "http" library, separated constants into
...
- HTTP_MIME_TYPES
- HTTP_HEADER_NAMES
- HTTP_REQUEST_METHODS
- HTTP_STATUS_CODE (already exists)
Do not set the "Status" header when using WGI_RESPONSE_BUFFER.write_header (...)
Cosmetic
2011-10-12 11:51:49 +02:00
Jocelyn Fiat
b17887d634
Added "Date:" helper feature in EWF_HEADER
...
Added license.lic to restbuck example, and mainly copyright to Javier
Use HTTP_STATUS_CODES
Minor improvements using object tests
Cosmetic (indentation, ..)
2011-10-07 14:03:31 +02:00
Jocelyn Fiat
71c851ca39
Fixed missing http:// in absolute URL
2011-10-05 14:47:30 +02:00
Jocelyn Fiat
900ed8baea
remove pre_execute, and post_execute, and make process_request frozen
...
this way, the user won't be tempted to redefine feature not being part of pure EWSGI interface.
2011-10-05 14:46:39 +02:00
Jocelyn Fiat
dba55fcfd9
better argument name, to precise the timeout is in second
...
also in comment.
2011-10-05 14:45:47 +02:00
Jocelyn Fiat
2b14a40898
fixed compilation for ewsgi/tests/tests.ecf file
2011-09-28 17:08:28 +02:00
Jocelyn Fiat
aa20a1423f
Made WGI_VALUE.name as READABLE_STRING_32 .. otherwise it is a pain to manipulate.
...
Changed return type of meta_variable to be WGI_STRING_VALUE ... since the meta variable can not be anything else.
Made sure REQUEST_URI starts with one and only one slash
Internal implementation: the _table now compares object
Removed SELF variable ... at least for now
Be sure to provide a REQUEST_URI even if the underlying connector does not.
2011-09-28 16:41:22 +02:00
Jocelyn Fiat
f24df1d745
restructured ewsgi to avoid too many sub cluster
2011-09-28 14:42:34 +02:00
Jocelyn Fiat
df59ae579b
fixed typo
2011-09-26 17:19:37 +02:00
Jocelyn Fiat
738eb7555f
Changed ITERATION_CURSOR [WGI_VALUE] into ITERABLE [WGI_VALUE] for WGI_REQUEST.*parameters* and similar
...
Applied recent changes on EWF_HEADER
2011-09-26 17:10:05 +02:00
Jocelyn Fiat
0db4317a49
Added AutoTest simple cases for ewsgi using Nino web server
2011-09-23 18:22:42 +02:00
Jocelyn Fiat
668847f8e8
Fixing issue with experimental WGI_MULTIPLE_STRING_VALUE
...
Fixed issue with RAW_POST_DATA
2011-09-23 18:21:57 +02:00
Jocelyn Fiat
e7fd7af2c5
Removed put_redirection' and replaced by put_location'
...
Removed useless code in some features
2011-09-23 18:20:23 +02:00
Jocelyn Fiat
24a5c7613d
Use READABLE_STRING(_*) instead of just STRING(_*)
2011-09-23 18:20:16 +02:00
Jocelyn Fiat
d9f6cbe80e
Added feature to shutdown the Nino http server
2011-09-23 18:18:54 +02:00
Jocelyn Fiat
dae8e1d67d
Made all libraries compilable in any mode (voidsafe or not)
...
Fixed related examples
2011-09-22 15:12:33 +02:00
Jocelyn Fiat
d9ba97d33b
Fixed issue where Content-Type and Content-Length were translated into HTTP_CONTENT_TYPE and HTTP_CONTENT_LENGTH instead of just
...
CONTENT_TYPE and CONTENT_LENGTH
2011-09-21 15:33:40 +02:00
Jocelyn Fiat
33eddd9197
better assertion to ensure `base' is a valid base url
2011-09-21 15:30:20 +02:00
Jocelyn Fiat
b3ef7c846b
Fixed issues in WGI_REQUEST's invariant
...
Fixed issues with guessing the default format for REST handling
Fixed issue with .._ROUTING_.. component.
2011-09-16 20:59:06 +02:00
Jocelyn Fiat
64060cfa41
fixed wrong order in parameter for callers of set_meta_string_variable
2011-09-16 18:54:44 +02:00
Jocelyn Fiat
d3239ec41b
added debug_output to WGI_VALUE
2011-09-16 18:54:16 +02:00
Jocelyn Fiat
86825854ca
Added WGI_MULTIPLE_STRING_VALUE
...
Renamed value as WGI_STRING_VALUE.string
Renamed a few classes .._CONTEXT_I as .._CONTEXT
updated example.
2011-09-15 17:49:47 +02:00
Jocelyn Fiat
5626e03aa8
- Adopted deferred WGI_VALUE design for Result type of *_parameter and similar functions
...
- Adopted the ITERATION_CURSOR [WGI_VALUE] design for *_parameters and similar functions
- renamed parameter as item
- provided helper function to handle "string" value parameters
Experimental for now.
2011-09-14 14:54:06 +02:00
Jocelyn Fiat
c1120a4226
change to standard default values
2011-09-09 08:50:05 +02:00
Jocelyn Fiat
eee085dd5a
renamed (un)set_meta_parameter as (un)set_meta_variable
2011-09-07 11:42:53 +02:00
Jocelyn Fiat
2d9e2d12a0
Missing HTTP_ prefix for header meta variable in REQUEST
2011-09-07 11:42:02 +02:00
Jocelyn Fiat
6a581f6d62
Changed prefix from EWSGI_ to WGI_
...
Changed meta variable type to READABLE_STRING_32
2011-08-30 19:20:42 +02:00
Jocelyn Fiat
ed8f5d694f
naming: meta_variable(s)
...
changed some string type to READABLE_STRING_32
or READABLE_STRING_8 for now regarding Meta variables (need decision here..)
2011-08-29 12:48:03 +02:00
Jocelyn Fiat
c20600f281
changed prefix GW_ into EWF_ for EiffelWebFramework
...
use READABLE_STRING_GENERAL instead of just STRING
2011-08-25 16:00:18 +02:00
Jocelyn Fiat
f6b362217c
Merged REQUEST and ENVIRONMENT into REQUEST
...
renamed ENVIRONMENT_NAMES into META_NAMES
better usage of READABLE_STRING_GENERAL, and other strings
abstract RESPONSE_BUFFER in implementation of EWSGI
for the implementation, inheriting from deferred specification (more to come later)
2011-08-25 14:41:35 +02:00
Jocelyn Fiat
ec6cc5f2b8
code cleaning, and prepare for internal review
2011-08-18 12:25:40 +02:00
Jocelyn Fiat
8e18329063
minor improvements on response_as_result code
2011-08-02 14:53:37 +02:00
Jocelyn Fiat
c372494713
cosmetic in config file .ecf
2011-08-02 10:47:16 +02:00
Jocelyn Fiat
10f4a99ee1
add "write_headers_string" to RESPONSE_BUFFER
2011-08-02 10:46:53 +02:00
Jocelyn Fiat
f7d3f519a7
moved ewsgi-full config file under tests (this is mainly for dev purpose, to be able to compile and edit all classes related to ewsgi)
2011-08-01 16:47:00 +02:00