Commit Graph

  • 8870e19991 Updated Home (markdown) jocelyn 2012-04-06 06:25:05 -07:00
  • 0b6b7f793c sync with json lib. Jocelyn Fiat 2012-04-06 11:31:57 +02:00
  • badc2458c4 Sync with wiki Jocelyn Fiat 2012-04-06 11:29:07 +02:00
  • d4208c59f3 Use https://github.com/EiffelWebFramework/EWF.git as master Jocelyn Fiat 2012-04-06 11:21:50 +02:00
  • 4bafa5b3c0 Added `transfered_content_length' to WSF_RESPONSE to provide the information to application This can be used to build logs for instance. Jocelyn Fiat 2012-04-05 21:15:12 +02:00
  • c89b19371e Relaxed WSF_REDIRECTION_RESPONSE.set_content (.., ..) to allow Void for content type in order to use the one set in header or the default one. Jocelyn Fiat 2012-04-05 21:14:10 +02:00
  • 10ebc12852 Removed default handler for WSF_ROUTER Added WSF_ROUTE to replace a TUPLE [H, C] WSF_ROUTER.route (req): detachable WSF_ROUTE WSF_ROUTER.execute_route (a_route, req, res) To help usage of Routers Remove WSF_HANDLER_CONTEXT obsolete features. Added comments Jocelyn Fiat 2012-04-05 21:13:04 +02:00
  • 593e48ec5b Merge remote-tracking branch 'remotes/eiffelworld/master' Jocelyn Fiat 2012-04-02 09:29:53 +02:00
  • 11b15ec5b7 Merge pull request #10 from oligot/unneeded_precondition Jocelyn Fiat 2012-04-02 00:28:23 -07:00
  • ff713a42ab [REM] Remove unneeded precondition Olivier Ligot 2012-03-27 11:30:42 +02:00
  • 155c45be6c [IMP] Ignore *.swp files Olivier Ligot 2012-03-27 11:29:33 +02:00
  • 09fa1adaab removed obsolete message. Jocelyn Fiat 2012-04-02 09:27:59 +02:00
  • 425c276051 [REM] Remove unneeded precondition Olivier Ligot 2012-03-27 11:30:42 +02:00
  • 0040e4b0d0 [IMP] Ignore *.swp files Olivier Ligot 2012-03-27 11:29:33 +02:00
  • b862065c04 Merge branch 'master', remote branch 'upstream/master' Olivier Ligot 2012-03-26 17:19:02 +02:00
  • 874677ab7a Renamed same_media_type as same_simple_type Added comments Jocelyn Fiat 2012-03-23 19:00:49 +01:00
  • ed200b93dd updated tests.ecf Jocelyn Fiat 2012-03-23 18:40:29 +01:00
  • bcccfb22ed Added HTTP_MEDIA_TYPE (maybe it will just replace the HTTP_CONTENT_TYPE later) renamed .media_type as .simple_type for now allow more than one parameters Jocelyn Fiat 2012-03-23 18:39:19 +01:00
  • 5c98d7ba4e Use media_type as replacement for type_and_subtype_string in HTTP_CONTENT_TYPE Jocelyn Fiat 2012-03-23 16:49:13 +01:00
  • 40c6aff423 Added class HTTP_CONTENT_TYPE to help manipulation of Content-Type value Now WSF_REQUEST return a HTTP_CONTENT_TYPE if available Adapted WSF_MIME_HANDLER to use this new class Added one manual autotest to test MIME handler Jocelyn Fiat 2012-03-23 16:40:13 +01:00
  • ac9cbb0bd2 in WSF_RESPONSE, put_header' now call put_header_text' Removed unused local variable Jocelyn Fiat 2012-03-21 14:49:09 +01:00
  • 95c3bbf6e5 Fixed very bad mistake where no Result was ever set for WSF_REQUEST.item (..) Jocelyn Fiat 2012-03-21 14:43:32 +01:00
  • b955912dc2 fixed compilation issue (typo) Jocelyn Fiat 2012-03-20 16:17:43 +01:00
  • 50223b12f7 Do not try to compile_all in "dev" folder Jocelyn Fiat 2012-03-20 16:15:16 +01:00
  • 6c7ba93062 Reverted a previous change, we should not truncated Content-Type after ; In the case of multipart/form-data the parameter "boundary=" is essential Jocelyn Fiat 2012-03-20 14:35:04 +01:00
  • 743f26c376 Use WSF_DEFAULT_SERVICE for the test echo server Jocelyn Fiat 2012-03-20 12:18:44 +01:00
  • d256ec3944 Fixing compilation of specific example using the WGI connector directly Jocelyn Fiat 2012-03-20 12:15:45 +01:00
  • 482f8e41e7 Added WSF_SERVICE.to_wgi_service to ease direct integration with existing WGI components Jocelyn Fiat 2012-03-20 11:40:13 +01:00
  • 9eef812795 Relaxed access to `send_to', now it is exported again to avoid breaking existing code. Jocelyn Fiat 2012-03-20 11:38:44 +01:00
  • 86fcaa2835 remove unused local variable Jocelyn Fiat 2012-03-20 11:15:14 +01:00
  • 897aeb3132 WSF_REQUEST.content_type should keep only the relevant part of the content type and forget about the eventual parameters (charset, name) ... Jocelyn Fiat 2012-03-20 11:12:18 +01:00
  • 48acdea73c Added HTTP_HEADER.(put|add)_content_type_with_parameters (...) Jocelyn Fiat 2012-03-20 11:08:52 +01:00
  • cbaae12156 removed obsolete Jocelyn Fiat 2012-03-20 10:30:04 +01:00
  • 8344607eb6 Implemented WSF_RESPONSE.put_error (...) and related Added WSF_RESPONSE.put_character Renamed WGI_OUTPUT_STREAM.put_character_8 as put_character to follow style of put_string (and not put_string_8) Refactored the WSF_DEFAULT_SERVICE_LAUNCHER Added WSF_DEFAULT_SERVICE to be more user friendly Splitted the wsf/default/ libraries to have wsf/connector/... and being able to handle more than one connector in the same application Jocelyn Fiat 2012-03-20 10:29:55 +01:00
  • 71d5dc4795 Moved mime handler classes under wsf/src/mime/ Jocelyn Fiat 2012-03-20 08:38:38 +01:00
  • 3f0b745ecc removed unwanted rescue clause Jocelyn Fiat 2012-03-19 15:20:29 +01:00
  • 3432e2d8b2 Updating EWSGI specification classes Jocelyn Fiat 2012-03-19 15:06:50 +01:00
  • 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 Jocelyn Fiat 2012-03-19 14:52:12 +01:00
  • 84a12447db Avoid another indirection. Berend de Boer 2012-03-19 12:12:48 +13:00
  • 876f9e02b7 status must be set, else WGI_SERVICE.execute will report the postcondition violation. Berend de Boer 2012-03-19 11:39:08 +13:00
  • e5323dd208 Minor code cleanup/typo fix. Berend de Boer 2012-03-19 09:32:00 +13:00
  • 77834a3dd8 Move wgi_service spec to its own directory else I get a class conflicts with compile_ise.ecf generated by gexace. Berend de Boer 2012-03-17 13:53:29 +13:00
  • 4906345a62 Improved comment in WSF_RESPONSE.put_response (..) Added WSF_REDIRECTION_RESPONSE class Jocelyn Fiat 2012-03-19 12:32:12 +01:00
  • 487487ad44 Added WSF_RESPONSE_HANDLER based on WSF_RESPONSE_MESSAGE The descendant has to implement the function Jocelyn Fiat 2012-03-19 12:04:46 +01:00
  • ef5ba19c46 Refactored WSF_HANDLER_CONTEXT - removed path_parameter - added item' to include WSF_REQUEST.item - marked obsolete parameter' Jocelyn Fiat 2012-03-19 10:21:29 +01:00
  • b05ff01262 Use local variable to speed up access to `input' Jocelyn Fiat 2012-03-19 10:12:06 +01:00
  • 9f1940c46d Applied wsf_extension creation, and classes moved from wsf to wsf_extension Jocelyn Fiat 2012-03-16 15:17:22 +01:00
  • f69ff42564 Created wsf_extension, and moved some classes from wsf to wsf_extension WSF_HANDLER_HELPER WSF_RESOURCE_HANDLER_HELPER WSF_HANDLER_ROUTES_RECORDER Jocelyn Fiat 2012-03-16 14:12:02 +01:00
  • eb3e9f2186 applied removal of HTTP_HEADER.put_status (..) Jocelyn Fiat 2012-03-16 13:53:22 +01:00
  • 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 Jocelyn Fiat 2012-03-16 13:35:52 +01:00
  • 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 Jocelyn Fiat 2012-03-16 09:49:41 +01:00
  • 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 Jocelyn Fiat 2012-03-13 18:41:32 +01:00
  • 081392529c Better use C_STRING.substring (1, size) instead of C_STRING.string since we know the exact size and this way, no risk with \0 character inside the string itself (for binary data..) jfiat 2012-03-13 17:36:43 +00:00
  • 68dbbdea9f precise that library/server/request/router is now part of "wsf" library and not anymore independant library. Jocelyn Fiat 2012-03-13 18:09:16 +01:00
  • 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" Jocelyn Fiat 2012-03-13 18:07:28 +01:00
  • e85213689e TCP_STREAM_SOCKET: added try_ready_for_reading' which is the same as ready_for_reading' but without any timeout Jocelyn Fiat 2012-03-13 17:38:33 +01:00
  • c5fe539acb use https:// url for git submodules Jocelyn Fiat 2012-02-29 17:23:34 +01:00
  • ac3e969b3c Added assertions to catch if route mapping does not already exists Jocelyn Fiat 2012-02-29 11:27:46 +01:00
  • 98f2efbd68 Merging changes from Javier Updated restbucksCRUD example, and related class in wsf/router Jocelyn Fiat 2012-02-28 09:23:09 +01:00
  • 7314e92fe6 Synchronized with nino and json library Jocelyn Fiat 2012-02-28 09:20:08 +01:00
  • ab38345c25 Update readme.txt jvelilla 2012-02-24 08:54:27 -02:00
  • c873d62efa added JSON_OBJECT.is_empty: BOOLEAN jfiat 2012-02-21 10:07:58 +00:00
  • 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 jvelilla 2012-02-17 08:48:27 -03:00
  • f1fe5464c6 Merge branch 'master' of git://github.com/jocelyn/Eiffel-Web-Framework jvelilla 2012-02-17 07:28:57 -03:00
  • d621987020 Minor correction, to avoid returning 200 as status code, when the client can not connect Jocelyn Fiat 2012-02-16 10:32:24 +01:00
  • e541fdcb0c fixed compilation Jocelyn Fiat 2012-02-15 12:36:57 +01:00
  • 5950d768c9 sync with cURL library Jocelyn Fiat 2012-02-15 11:58:32 +01:00
  • 413fdaf6cd Fixed error visitor due to recent signature changes Jocelyn Fiat 2012-02-15 11:33:39 +01:00
  • 9138ffedfb renamed (add|remove)_synchronized_handler as (add|remove)_synchronization Jocelyn Fiat 2012-02-15 11:07:12 +01:00
  • 72cc05532c Removed tests target from encoder(-safe).ecf (now there is a tests-safe.ecf in folder tests) Jocelyn Fiat 2012-02-15 11:04:42 +01:00
  • 145b129b28 Fixed ERROR_HANDLER.destroy Fixed and export ERROR_HANDLER.remove_synchronized_handler Added comments Added associated autotests Jocelyn Fiat 2012-02-15 11:03:30 +01:00
  • fbec89f354 Better signature for encoders Split library .ecf and the autotest .ecf Jocelyn Fiat 2012-02-14 18:03:42 +01:00
  • 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 ("..") Jocelyn Fiat 2012-02-14 18:02:14 +01:00
  • 4bb8a71c1b Added DEBUG_OUTPUT to ERROR, since this is convenient during debugging Jocelyn Fiat 2012-02-14 18:01:17 +01:00
  • 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) Jocelyn Fiat 2012-02-14 12:57:01 +01:00
  • e52cd6b352 use WSF_PAGE_RESPONSE, instead of reimplementing it ourself Jocelyn Fiat 2012-02-14 10:20:15 +01:00
  • ad2a498fc0 Added cURL multi interface support (most APIs) issue#7305157 larryl 2012-02-14 02:52:03 +00:00
  • 537bd8241f added a JSON encoder test case Jocelyn Fiat 2012-02-13 14:38:13 +01:00
  • 040c1d1c10 Merge pull request #9 from oligot/fix-libfcgi-location Jocelyn Fiat 2012-02-13 03:21:29 -08:00
  • f3c779cf6e [FIX] libfcgi.so location Olivier Ligot 2012-02-10 14:01:04 +01:00
  • 6cf35e90c6 added a case in test_json_encoder Jocelyn Fiat 2012-02-08 21:36:49 +01:00
  • 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. unknown 2012-02-08 21:32:25 +01:00
  • ca3a520bb9 fixed http_client tests Jocelyn Fiat 2012-02-08 16:36:54 +01:00
  • 3c755019aa Updated content jvelilla 2012-02-08 08:47:39 -03:00
  • 3a9b67c8ad Better code to test similar functions but with chunked input Jocelyn Fiat 2012-02-07 16:05:19 +01:00
  • e21da4a591 Improved the WSF_PAGE_RESPONSE to be more flexible and allow to change some values as expected. Jocelyn Fiat 2012-02-07 15:49:02 +01:00
  • 69bc4d568c Added support for chunked input data (see Transfer-Encoding: chunked) Jocelyn Fiat 2012-02-07 15:47:55 +01:00
  • cf8d25c4e5 Added HTTP_HEADER.append_header_object and append_array. This is helpful to "merge" two HTTP_HEADER and provide user friendly features Jocelyn Fiat 2012-02-07 15:45:44 +01:00
  • 2b9ca86501 Added proxy, at least to make it is possible to use http://fiddler2.com/ to inspect the traffic. Jocelyn Fiat 2012-02-07 15:44:45 +01:00
  • 2f43660628 Merge branch 'master' of https://github.com/jvelilla/Eiffel-Web-Framework Jocelyn Fiat 2012-02-07 15:13:59 +01:00
  • d8476edf36 Fixed wrong code for postcondition on HTTP_HEADER.string Jocelyn Fiat 2012-02-01 16:53:24 +01:00
  • 67e6b460b3 removed unwanted set_status_code, since we already use put_header to set the status code. Jocelyn Fiat 2012-02-01 16:05:30 +01:00
  • 962154fc81 Eventually fixing trouble with c_strlen being over capacity (added this for testing, and while waiting a fix from EiffelcURL) Jocelyn Fiat 2012-02-01 11:57:42 +01:00
  • 645b35590b Improved redirect_now_custom to allow custom status code, custom header, and custom content Jocelyn Fiat 2012-02-01 10:57:52 +01:00
  • 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 Jocelyn Fiat 2012-01-31 17:57:59 +01:00
  • 945ef79857 added REQUEST_HANDLER_CONTEXT.string_array_path_parameter (...) to help user handling list/array parameters fixed postcondition WSF_REQUEST.set_meta_string_variable ... Jocelyn Fiat 2012-01-31 12:12:41 +01:00
  • 2c4df29877 Make sure to return a response Added precondition to check URI_TEMPLATE is valid Jocelyn Fiat 2012-01-25 16:27:22 +01:00
  • e6687c7791 Fixed wrong assertion, status_committed instead of status_set Jocelyn Fiat 2012-01-24 16:47:12 +01:00
  • 754d3f670c Fixed issue with WSF_FILE_RESPONSE not setting the status code Added Last-Modified Jocelyn Fiat 2012-01-23 18:20:25 +01:00
  • 8e420de8ec Fixed wrong code for postcondition in unset_orig_path_info Jocelyn Fiat 2012-01-23 15:32:11 +01:00