Commit Graph
86 Commits
Author SHA1 Message Date
jocelyn cf01756c1c Using the new Content Negotiation library to implement WSF_REQUEST.is_content_type_accepted 2013-10-18 20:46:08 +02:00
jocelyn 58dc2ec792 Updated README.md for conneg 2013-10-18 20:44:36 +02:00
jocelyn 88e6837222 Class renaming for content_negotiation
Splitted SERVER_CONTENT_NEGOTIATION in 4 differents classes for each kind of negotiation
Changed to use ITERABLE over LIST for supported variants arguments
Factorized some code for http parameter parsing such as q=1.0;note="blabla"  and so on
Integrated within EWF
2013-10-18 16:18:22 +02:00
jocelyn d376f99832 Updated content_negotiation with better class names and feature names.
Minor semantic changes in VARIANTS classes
Factorized some code in HTTP_ACCEPT_LANGUAGE
2013-10-15 23:19:12 +02:00
jocelyn 3072ce7dec Enabled assertion on content_negotiation during autotests
The tests project is now void-safe

Using force instead of put_left seems to work fine
  and is better for performance,
  and no need to check for precondition "not before"
2013-10-14 18:54:36 +02:00
jocelyn 0f7dca0701 Removed unwanted call to RT_DEBUGGER in WSF_DEBUG_HANDLER.
This line was committed by error.
2013-09-24 17:19:29 +02:00
jocelyn 843955b7b8 Reused string constants from HTTP_HEADER_NAMES 2013-09-24 15:27:02 +02:00
jocelyn 88192335b6 Added implicit conversion from agent to WSF_URI_TEMPLATE_AGENT_HANDLER
Mainly for convenience.
2013-09-24 15:26:16 +02:00
jocelyn b04159fb35 Use WSF_RESPONSE.put_header_lines (header_object) when possible, instead of put_header_text (header_object.string) 2013-09-24 15:24:34 +02:00
jocelyn 1d0eb14918 Added WSF_SELF_DOCUMENTED_AGENT_HANDLER and variants for uri, uri_template, starts_with, ...
to provide a way to documentate easily wsf agent handler.
2013-09-24 15:23:15 +02:00
jocelyn dd31970b01 Renamed content_negotation' as content_negotiation' (fixed typo)
Updated .ecf and Eiffel code depending on previous CONNEG
2013-09-20 15:18:56 +02:00
jocelyn f31ed103d0 Integrated changes on content negociation library 2013-09-20 15:04:50 +02:00
jocelyn fff08a29e7 Accepts "*" as valid media type (interpreted as */* to be flexible) 2013-09-16 22:33:18 +02:00
jocelyn 2f3a462c42 Fixed type having a semicolon in a parameter value such as
"text/plain; param1=%"something;foo=bar%"; param2=%"another-thing%"
2013-09-16 18:04:43 +02:00
jocelyn f8a0bbf88b Added autotests to http library in relation with mime type and content type.
Fixed an issue with more than one parameter.
2013-09-16 16:24:05 +02:00
jocelyn b5bdf88bf4 Merge branch 'master' of github.com:EiffelWebFramework/EWF 2013-09-13 14:50:29 +02:00
jocelyn 74e96d7816 Added PATCH support in http_client, and provided custom_with_upload_data and custom_with_upload_file. 2013-09-13 14:50:07 +02:00
jocelyn 527e877b30 forget about older version of Eiffel cURL 2013-09-13 14:49:09 +02:00
jocelyn 9499601daf Fixing handling of query parameter without value
Issue#70 https://github.com/EiffelWebFramework/EWF/issues/70
2013-09-09 15:51:20 +02:00
jocelyn ed9fac0545 fixed compilation of wsf_extension 2013-09-06 18:13:05 +02:00
jocelyn 3b66d77ddc Merge branch 'master' of github.com:EiffelWebFramework/EWF 2013-09-06 15:40:23 +02:00
jocelyn fc5ef995bc Added WSF_CUSTOM_HEADER_FILTER which provide a convenient way to add a custom header from a filter.
Added to wsf_extension WSF_DEBUG_FILTER and WSF_DEBUG_HANDLER that could be convenient to test specific requests
Restructured wsf_extension
2013-09-06 15:39:04 +02:00
jocelyn 4c5fa0ed61 added policy driven license .lic files 2013-09-06 15:35:09 +02:00
jocelyn ea9161b2f2 Added WSF_WIDGET_RAW_TEXT to render text via html encoding.
Added WSF_WIDGET_COMPOSITE.extend_html_text (READABLE_STRING_8) that should replace the now obsolete "extend_text"
Added WSF_WIDGET_COMPOSITE.extend_raw_text (READABLE_STRING_GENERAL), for text that need to be html encoded during html rendering.
Made WSF_FORM_RAW_TEXT obsolete.
2013-09-06 15:34:38 +02:00
jocelyn 3c139315e5 removed useless (and unused) function {WSF_SERVICE}.to_wgi_service: WGI_SERVICE 2013-09-06 15:32:05 +02:00
jocelyn 15a96a402d Fixed bad output 2013-09-06 15:31:26 +02:00
jocelyn 5959099c55 Used res.put_header_lines (h) rather than res.put_header_text (h.string) 2013-09-06 15:31:11 +02:00
jocelyn 517720c99c Updated copyright for policy-driven classes, which is a contribution from Colin Adams. 2013-08-21 14:00:34 +02:00
jocelyn 9938cc941d Merge branch 'master' of https://github.com/EiffelWebFramework/EWF.wiki 2013-08-21 09:58:59 +02:00
jocelyn 2651171294 Extracted the policy driven classes into their own library for now "wsf_policy_driven.ecf"
Updated the restbucksCRUD example to demonstrate both approaches.
2013-08-20 17:27:57 +02:00
jocelyn 07f71dfc4e Moved recent policy-driven classes into "policy" sub folder 2013-08-20 13:26:55 +02:00
jocelyn 51730e0877 Merge branch 'handler' of github.com:colin-adams/EWF into colin-adams-handler 2013-08-20 13:17:01 +02:00
jocelyn 9958bb27a1 Removed WSF_ROUTING_HANDLER.make_with_router (a_router)
It was not used in existing code, and potentially dangerous, if coder reuses router by accident.
2013-08-20 13:15:37 +02:00
jocelyn 8d9dca1a94 removed building the Clib for Eiffel cUrl, since it is not anymore included in EWF. 2013-08-05 10:21:24 +02:00
jocelyn 5753af3e43 Cosmetic
(removed commented line and fixed bad indentation)
2013-08-05 10:20:41 +02:00
jocelyn 2676b16425 Moved gewf under draft/src/gewf 2013-07-05 15:13:43 +02:00
jocelyn f7012e5b85 added README for gewf 2013-07-05 15:12:21 +02:00
jocelyn a149d8de97 licensing and copyright 2013-07-05 15:07:14 +02:00
jocelyn eea8894724 First working (but limited) tool 2013-07-05 15:06:30 +02:00
jocelyn 5b988ab760 Added first attempt to provide a application builder.
For now only trying to have a generic template.

Do not expect anything working for now, this is just the start of a draft
2013-07-05 12:44:09 +02:00
jocelyn 88a38509de Merge branch 'master' of https://github.com/EiffelWebFramework/EWF.wiki 2013-07-04 17:29:25 +02:00
jocelyn c216b96707 Moved the cms component to https://github.com/EiffelWebFramework/cms
This is now out of EWF repository.
2013-07-02 12:21:54 +02:00
jocelyn cb3f983b91 improve file system handler to ignore .* *.swp *~ or using FUNCTION to compute the ignore behavior 2013-06-28 16:11:27 +02:00
jocelyn dc25723a35 Improved Unicode support. 2013-06-28 11:32:12 +02:00
jocelyn 8040dd5826 Ensured that EWF compiles with 7.2
(note about ecf version
   1-10-0 void_safety="all" <-->  1-11-0 void_safety="transitional"
   1-10-0 void_safety="all" <---  1-11-1 void_safety="all"
)
2013-06-28 11:06:35 +02:00
jocelyn 859a13ae51 Cosmetic, improve readability of conditions 2013-06-18 15:29:07 +02:00
jocelyn bce084b9db Removed wsf_support, which is useless and unused 2013-06-18 15:28:42 +02:00
jocelyn 23ed157a75 Better use append rather than copy here. 2013-06-18 15:12:53 +02:00
jocelyn 3723469d52 Try to send 500 Internal error when exception reachs this point 2013-06-18 15:09:34 +02:00
jocelyn 218e73945d Updated ecf file as workaround to make autotest works fine. 2013-06-17 12:03:46 +02:00
jocelyn 4ab44a0c47 Added notification_email library as official EWF lib. 2013-06-13 09:47:09 +02:00
jocelyn 47dbe7fdbb Unicode support for notification_email library 2013-06-13 09:45:40 +02:00
jocelyn 2252971c3e Added HTTP_DATE.append_to...string conversion feature
Made HTTP_DATE.append_...to...string more flexible by acception STRING_GENERAL,
    so it is possible to append to STRING_32 (further more, it avoid potential implicit conversion)
2013-06-13 09:43:13 +02:00
jocelyn 28a6bb158a Removed a few obsolete usages, and benefit from new classes from EiffelStudio >= 7.2 2013-06-12 18:51:29 +02:00
jocelyn f653507fc8 Updated WGI specification to ease future migration to unicode support.
Use STRING_TABLE, and better interface of READABLE_STRING_GENERAL,
    this way the signature are more flexible for unicode keys.

    Note that for now, unicode environment variables are not correctly supported in WGI
    especially the value of the variables.
    Any layer on top of EWGSI suffers from the same issues.

Better exception handling

+ code cleaning
2013-06-12 18:50:45 +02:00
jocelyn 225cda0af7 minor optimization avoiding to create temporary string that might be big 2013-06-12 18:23:18 +02:00
jocelyn f3f5384d9b Updated CMS support for unicode. 2013-06-12 18:22:56 +02:00
jocelyn 110a95b786 Fixing compilation of CMS demo project. 2013-06-12 18:12:06 +02:00
jocelyn cc4ef1a575 Better support for unicode path and values.
Added WSF_REQUEST.percent_encoded_path_info: READABLE_STRING_8
    to keep url encoded path info, as it is useful for specific component

The router is now using WSF_REQUEST.percent_encoded_path_info
    since URI_TEMPLATE are handling URI (and not IRI)
    this fixes an issue with unicode path parameters.

This should not break existing code, and this fixes various unicode related issues related
   to PATH parameter and path info
   but also any component using file names.

(required EiffelStudio >= 7.2)
2013-06-12 18:03:11 +02:00
jocelyn fa8b3fdccc Added HTTP_DATE.make_now_utc for convenience. 2013-06-11 11:49:45 +02:00
jocelyn fbbd1f1eee Fixed various void-safety issue with recent compilers.
Note that EWF does now require EiffelStudio 7.2, and is compiling with 7.3
2013-06-07 15:40:50 +02:00
jocelyn 95f14c501c Merge branch 'master' of https://github.com/Eiffel-World/EiffelWebNino 2013-05-31 12:32:28 +02:00
jocelyn f41e83c30c removed unused local variable 2013-05-31 12:28:58 +02:00
jocelyn 5b6c257fae Improved WGI_INPUT_STREAM.append_to_file (f: FILE; nb: INTEGER) 2013-05-28 15:04:50 +02:00
jocelyn 401bbc657a update cms style 2013-05-28 15:04:04 +02:00
jocelyn f706e049bc Merge branch 'master' of github.com:EiffelWebFramework/EWF 2013-05-28 14:44:17 +02:00
jocelyn eab8df7e10 Added WSF_REQUEST.read_input_data_into_file (FILE) 2013-05-28 14:42:11 +02:00
jocelyn 430b34df4f removed unused local variable 2013-05-15 10:54:07 +02:00
jocelyn 1a518e4d27 use EWF_tmp- prefix for temp uploaded file name. 2013-05-15 10:52:32 +02:00
jocelyn b09060315c fixed implementation of WSF_UPLOADED_FILE.append_content_to_string 2013-05-15 10:48:38 +02:00
jocelyn 899a32c86c Added WSF_UPLOADED_FILE.append_content_to_string (s: STRING) which can be used to get the content of the uploaded file. 2013-05-15 10:33:00 +02:00
jocelyn 7d5d55462f Added a way to customize the place to store temporary uploaded files 2013-05-15 10:31:05 +02:00
jocelyn b083f1d596 code cleaning 2013-05-15 10:30:32 +02:00
jocelyn c61afe77a0 removed unused local variable 2013-05-14 18:31:44 +02:00
jocelyn 654561bcbc Added WSF_REQUEST.has_execution_variable (a_name): BOOLEAN
Since the related value can be Void.
2013-05-14 18:17:48 +02:00
jocelyn a065cfb2b5 Removed unused local variables. 2013-05-14 16:04:32 +02:00
jocelyn 5c51937b7e Merge branch 'master' of https://github.com/EiffelWebFramework/EWF 2013-05-14 15:58:17 +02:00
jocelyn 330d1462bf Reuse WSF_LAUNCHABLE_SERVICE code as ancestor of WSF_DEFAULT_SERVICE_I
Note that this way, it is easy to redefine `launch' in order to customize the launching instruction if needed (thinking about testing...)
This might breaks some code since it adds a `launch' feature, but it is easy to fix and unlikely to happen often.
2013-05-14 15:57:08 +02:00
jocelyn e8d96b3521 send the file date for download file response. 2013-04-22 21:06:29 +02:00
jocelyn 06088866e0 WSF_RESPONSE.put_header_text should use put_raw_header_data (and not append) 2013-04-22 21:06:06 +02:00
jocelyn ad34ec1156 added header helper feature in the context interface
added HTTP_CLIENT_SESSION.custom (...)
to support any kind of request methods
2013-04-22 21:05:11 +02:00
jocelyn a547cbaeb1 Fixed HTTP_CLIENT_RESPONSE when dealing with redirection
before it was storing some header in the body.
   now we added redirections: ..  which is a list of redirection informations:
     - status line
     - header
     - and eventual redirection body (but at least by default, libcurl does not cache body)

Enhanced the http_client library to be able to write directly the downloaded data into a file (or as convenient thanks to agent).
2013-04-11 15:53:46 +02:00
jocelyn 47e028de2a Fixed feature comments 2013-04-10 09:42:09 +02:00
jocelyn a65f8cbc9c Merge branch 'master' of https://github.com/EiffelWebFramework/EWF 2013-04-10 09:31:07 +02:00
jocelyn f85dc7f550 Fixed HEAD request related issue
see https://github.com/EiffelWebFramework/EWF/issues/53
2013-04-10 09:27:58 +02:00
jocelyn 5fc34d947a Cosmetic
fixed various indentations
Removed useless dependencies for ewf_ise_wizard project.
2013-04-05 12:12:26 +02:00