jvelilla
e9b7fc4c93
Update examples/restbucksCRUD/readme.md
2011-12-08 20:28:14 -02:00
jvelilla
0dd2812574
Updated documentation
2011-12-08 20:04:39 -02:00
jvelilla
d961544b8b
Updated restbucksCRUD documentation
2011-12-08 18:48:50 -03:00
jvelilla
3313e9cf81
Added basic two basic examples, refactor rename restbucks
...
to restbucksCRUD
2011-12-08 18:43:29 -03:00
Jocelyn Fiat
03938b43c3
Fixed compilation issue for CGI and libFCGI connector
...
due to recent changes in interface (use READABLE_STRING_8)
2011-12-02 12:05:07 +01:00
Jocelyn Fiat
fff7a5c96d
Added WSF_RESPONSE.write_chunk (s: ?READABLE_STRING_8)
...
to help user sending chunk with "Transfer-Encoding: chunked"
2011-12-01 18:22:47 +01:00
Jocelyn Fiat
cdfc6851e7
- (WGI|WSF)_RESPONSE(*) renamed write_headers_string as write_header_text
...
- HTTP_HEADER.string does not have the ending CRLFCRLF .. but just CRLF
- WGI_RESPONSE.write_header_text has the responsibility to handle the last blank line CRLF (separating the header from the message)
- HTTP_HEADER.string does not set anymore a default content type as text/html
- added WGI_RESPONSE.write_header_lines (ITERABLE [TUPLE [name,value: READABLE_STRING_8]] mainly as an helper method,
this way the WGI user does not have to know about the CRLF end of line
2011-11-25 20:43:04 +01:00
Jocelyn Fiat
42be0b2a4e
Use HTTP_HEADER instead of WSF_HEADER
...
(WSF_HEADER is kept for convenience and existing code)
2011-11-25 15:53:15 +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
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
07f9a8cec7
applied recent changes from Nino
2011-11-03 18:50:19 +01:00
Jocelyn Fiat
9bbcdc9927
removed unwanted .rc
2011-10-27 16:03:10 +02:00
Jocelyn Fiat
8e4e7a5084
Merge branch 'master' of https://github.com/jvelilla/Eiffel-Web-Framework
...
Conflicts:
library/server/wsf/src/wsf_request.e
2011-10-27 15:49:12 +02:00
jvelilla
c9343688f3
Added eel and eapml in EWF libraries.
...
Removed them from gitmodule
2011-10-27 08:29:01 -03: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
jvelilla
6fb36da9ac
Merge remote-tracking branch 'jocelynEWF/master'
...
Conflicts:
examples/restbucks/restbucks-safe.ecf
examples/restbucks/src/resource/order_handler.e
library/server/request/router/src/misc/request_resource_handler_helper.e
2011-10-23 20:58:28 -03:00
jvelilla
6344f964fa
Update delete method to hanlde method not allowed.
...
Added method not allowed to request resource handler helper class.
Update gitmodules
2011-10-23 09:05:12 -03: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
jvelilla
9f53287226
Update Restbucks example: Conditional GET, PUT.
...
Added a response method to support resource not
modified.
Added a ETAG_UTILS class to calcule md5_digest.
Added ext libs eel and eapml.
2011-10-21 08:26:14 -03:00
Jocelyn Fiat
1453873b6c
Added HTTP_FILE_EXTENSION_MIME_MAPPING
...
Added REQUEST_FILE_SYSTEM_HANDLER to the router library
Added file system handler in "hello_routed_world" example
2011-10-14 14:13:40 +02:00
jvelilla
8255dfd996
Added handle_resource_conflict_response feature to handle 409 reponse,
...
Cosmetic.
2011-10-13 09:07:37 -03:00
Jocelyn Fiat
4c36d75ef3
Using Transfer-Encoding: chunked in example to send response progressively
2011-10-12 17:23:24 +02:00
Jocelyn Fiat
b9ca22006b
removed unwanted code
2011-10-12 15:38:45 +02:00
Jocelyn Fiat
735730b5a0
cosmetic
2011-10-12 11:52:00 +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
0144e97d69
Merge branch 'master' of https://github.com/jvelilla/Eiffel-Web-Framework
...
Conflicts: examples/restbucks/src/domain/json_order_converter.e
Cosmetics
2011-10-11 14:25:22 +02:00
Jocelyn Fiat
26bfd72f5f
Fixed errors recently introduced
2011-10-11 14:16:08 +02:00
jvelilla
eb44eef885
Update order_handler, fix json_order_converter
2011-10-11 08:18:46 -03: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
f443087e71
Added a first simple test client to test the restbuck client
2011-10-06 19:09:56 +02:00
jvelilla
ed04b7fba0
Added REQUEST_RESOURCE_HANDLER_HELPER class to contain
...
common http method behavior.
Updated ORDER_HANLDER to use this new class.
2011-10-06 09:54:20 -03:00
jvelilla
7ba3eb9ecd
Updated support for PUT. Now the example support
...
GET, POST, PUT, DELETE.
2011-10-03 09:26:01 -03:00
jvelilla
5adf40a9ed
Updated Restbucks examples, handle not method allowed
...
in a better way, added the readme file.
2011-09-28 08:54:12 -03:00
jvelilla
f20bc42b76
Merge remote-tracking branch 'jocelynEWF/master'
2011-09-28 07:36:35 -03: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
jvelilla
19b5edd9b4
Added validations.
2011-09-23 09:06:23 -03:00
jvelilla
888bc61522
Initial import, work in progress restbuck example. Only support create
...
a resource
2011-09-22 09:29:59 -03:00
jvelilla
32bb75b9dc
Merge remote-tracking branch 'jocelynEWF/master'
2011-09-16 07:04:40 -03: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
jvelilla
c37fe9ad79
Merge remote-tracking branch 'jocelynEWF/master'
2011-09-14 07:58:40 -03:00
Jocelyn Fiat
92105ca7b3
updated config file and examples
2011-09-13 17:07:17 +02:00
Jocelyn Fiat
32197d0513
changing design to use generic instead of anchor types
2011-09-09 16:24:11 +02:00
Jocelyn Fiat
11286eeeef
make router more easy to inherit from and specialized
2011-09-09 14:10:54 +02:00
jvelilla
7bd5cdc232
Merge remote-tracking branch 'jocelynEWF/master'
2011-09-08 07:44:27 -03:00
jvelilla
ef85c07603
Update
2011-09-08 07:43:36 -03:00
Jocelyn Fiat
244fdf1b02
Added request methods criteria for the router component.
...
Now one can decide
map_agent_with_request_methods ("/foo/bar/{bar_id}", agent handle_foo_bar, <<"GET">>)
(and similar for non agent way)
This might be useful in pure RESTful environment.
2011-09-07 12:14:03 +02:00
Jocelyn Fiat
3c9fce293f
fixed example .. where we forgot to set the status, and send the header
...
(DbC helped here)
2011-09-07 12:10:48 +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