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
a3f28e3945
Move "rest" library under "draft/..." since it is more an experiment rather than a real REST library
2011-11-23 15:18:35 +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
b71a22d040
Added request method PATCH even if not really used for now, it might in the future
2011-11-16 15:52:00 +01:00
Jocelyn Fiat
955f73dee9
Added various README.md (using the markdown syntax)
2011-11-14 19:00:00 +01:00
Jocelyn Fiat
16cab53fb4
removed compliance on ewsgi, since now we target WSF
...
applied recent changes related to WSF_VALUE
2011-11-02 16:11:40 +01:00
Jocelyn Fiat
a2bf68e18a
Safer interface for WSF_VALUE, when related to STRING value
2011-11-02 15:42:58 +01:00
Jocelyn Fiat
ee9722fa18
renamed WSF_(.*)_VALUE as WSF_$1
2011-11-02 13:10:35 +01:00
Jocelyn Fiat
0d637d478a
Fixed a previously character changes in WSF_REQUEST (related to safe_filename), and modified the implementation to use inspect
...
Fixed the request_content_type computation
Cosmetic in REQUEST_RESOURCE_HANDLER_HELPER
2011-10-27 16:00:33 +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
Jocelyn Fiat
35a4cd7df9
cosmetic, or minor changes
2011-10-27 14:45:14 +02:00
jvelilla
f804a705d5
Updated request resource handler.
...
TODO: implement Content-Negotiation
2011-10-26 08:21:50 -03: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
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
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
eaa99c9c61
Used object test
2011-10-19 00:40:04 +02: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
593b48fe90
applied recent changes on HTTP_REQUEST_METHOD_CONSTANTS
2011-10-12 11:56:25 +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
a9e2dc1135
Added the possibility to specify the supported content types
...
Added FIXME
2011-10-07 15:39:04 +02:00
Jocelyn Fiat
142dbc39b4
Cosmetic
2011-10-07 14:11:03 +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
720d8be08a
Merge branch 'master' of https://github.com/jvelilla/Eiffel-Web-Framework
2011-10-06 17:37:41 +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
Jocelyn Fiat
4c9e7a4331
Added `base_url' for REQUEST_ROUTER (and descendants)
...
Fixed implementation of REST_REQUEST_AGENT_HANDLER to avoid wrong path in inherited routine.
Allow to build a URI_TEMPLATE from another URI TEMPLATE,
this way, if later we have more attribute (status or settings) to URI_TEMPLATE,
we'll be able to change the `template' without breaking the settings
2011-10-05 17:09:16 +02:00
Jocelyn Fiat
cc6992a6fc
added missing call to pre_execute and post_execute
2011-10-05 14:47:59 +02:00
Jocelyn Fiat
456299ccdf
Fixed agent handler for rest library
2011-10-04 17:33:15 +02:00
Jocelyn Fiat
27c637b066
fixed inheritance and precursor bad usage.
2011-10-04 16:19:09 +02:00
Jocelyn Fiat
a4df57a7ac
fixed compilation of rest example
2011-09-26 20:54:04 +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
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
111812c4e9
Fixed issue with uri template router ..
...
it was applying on request_uri instead of path_info
now it match on PATH_INFO
2011-09-16 18:56:02 +02:00
Jocelyn Fiat
92d8357d09
more flexible authenticated query .. on handler, and not anymore on context object
2011-09-16 18:55:26 +02:00
Jocelyn Fiat
c9a4ebcb23
added request_handler_routes_recorder to provide an implementation for `REQUEST_HANDLER.on_handler_mapped'
2011-09-16 15:17:49 +02:00
Jocelyn Fiat
3f899f6aae
Added "on_handler_mapped" callback
...
to allow any REQUEST_HANDLER to record the existing routes.
2011-09-16 15:11:37 +02:00
Jocelyn Fiat
18684d167b
typo
2011-09-16 15:02:08 +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
774cd004db
cosmetic
2011-09-15 15:49:53 +02:00
Jocelyn Fiat
22fd7490fe
Simplified interface of "router" library classes
2011-09-14 16:48:27 +02:00
Jocelyn Fiat
8b6e9273fa
applied renaming for rest and router lib
2011-09-14 16:05:01 +02:00
Jocelyn Fiat
76fa3e9ff5
Reorganized library "server/request/rest"
2011-09-14 15:46:45 +02:00
Jocelyn Fiat
1e3770d724
some renaming to use _I for the generic classes, and removed the DEFAULT_ prefix for default implementation
...
this should makes things easier for new users
2011-09-14 15:39:37 +02:00
Jocelyn Fiat
840ae1e6e4
reorganized router library
2011-09-14 15:04:29 +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
512f2d2ce5
Added first draft for RESTful library
...
note: the interfaces are likely to change in the future
2011-09-13 17:08:40 +02:00