30a5e087ae
Web form:
...
- Improvement about web form manipulation (remove a field, set a text value to input fields by name, ...)
- Improved web form html generation, especially for select and type checkbox
- Updated the date input field interface with a new set_date_value .
File response:
- "application/force-download" is not a standard MIME content type, so use "application_octet_stream" instead as default.
Standalone connector:
- Added expected creation procedure for the service launcher.
- Added new "secure_port" configuration variable, for SSL standalone service.
This way, if `is_secure` is True, the server will use `secure_port` (overrides `port` value).
Date:
- Improved support for RFC 3339 (a profile of ISO 8601)
Removed obsolete and warnings:
- removed usage of FILE_NAME
- updated code to avoid implicit conversion from STRING_32 to STRING_8
- avoid uneed conversion to STRING_8 (when possible)
2020-10-02 15:02:06 +02:00
2760b24d8f
Updated ecf files to newer schema 1-20-0 .
2020-02-27 18:06:40 +01:00
8760152441
Fixed value of SERVER_PORT for secure connection (i.e https:// ), by default it is 443 .
...
this was fooling WSF_REQUEST.absolute_url (...) .
2020-02-26 22:46:50 +01:00
a97eb4b062
Added missing dependencies.
2018-05-30 19:27:04 +02:00
d43c4edb7d
Updated the default rescue response (i.e when exception or bad internal error occurs).
...
Factorized the implementation in WGI_RESCUE_EXECUTION, and now by redefining the `WGI_EXECUTION.execute_rescue (...)` procedure, it is possible to have a custom response on such rescued execution.
2018-05-30 17:28:24 +02:00
8e8c3602c6
Allow (websocket) upgrade even without persistent connection for normal http request.
...
(note: this allows to use websocket in single-threaded mode, and avoid the keep-alive-timeout delay before websocket begins its execution)
2018-02-13 18:39:47 +01:00
Jocelyn Fiat
2f98d7031f
Updated a few package.iron files.
2017-10-06 14:06:46 +02:00
Jocelyn Fiat
9b97627c76
Update package.iron files.
2017-10-06 10:27:32 +02:00
Jocelyn Fiat
fb9af26d32
Updated or added timestamp to obsolete and fixme messages.
...
Fixed ecf file exclusion for .svn and .git .
Cosmetic changed.
2017-05-12 14:11:22 +02:00
Jocelyn Fiat
94ba19920e
Merge branch 'v1' into es17.01
...
# Conflicts:
# library/text/parser/uri_template/uri_template-safe.ecf
# library/text/parser/uri_template/uri_template.ecf
2017-04-14 12:04:33 +02:00
Jocelyn Fiat
3b8261ff08
Updated code regarding to string 32 vs string 8.
2017-04-14 11:45:38 +02:00
jvelilla
5d9752f257
Updated code, get rid of obsolete feature calls in libraries and examples
2017-04-13 16:48:17 -03:00
d4c79f1893
Fixed xml info of ecf files.
2017-03-07 14:31:36 +01:00
a44ca1a76c
Converted all ecf files to ecf version 1-16-0 .
2017-02-14 14:47:07 +01:00
186e5514eb
If the count for put_file_content is not positive (i.e <= 0), do not send anything.
...
Output/log more information for request handling when standalone httpd server has verbose enabled.
2016-12-01 21:20:14 +01:00
ca8f95a594
Made library ecf compilable in scoop concurrency mode by default.
...
So ecf files are compilable with 16.05 and 16.11 .
2016-12-01 14:56:56 +01:00
5a9ccce558
Made library ecf compilable in scoop concurrency mode by default.
...
Except nino related projects that depends on EiffelThread.
2016-11-01 14:30:19 +01:00
5e79751522
Updated WGI_OUTPUT_STREAM.put_file_content .
2016-10-25 13:44:44 +02:00
885195dbaa
Added WSF_RESPONSE.put_file_content (f: FILE, a_offset: INTEGER; a_count: INTEGER) to allow potential future optimization.
2016-10-24 12:47:33 +02:00
Jocelyn Fiat
d45b90e52a
Fixed ecf to get them compiled.
2016-10-14 17:57:02 +02:00
Jocelyn Fiat
a4d737d548
Be sure to use ecf custom variable "ssl_enabled" and not the variant "httpd_ssl_enabled" or else.
...
Include again the openssl include folder for EiffelStudio before 16.11, otherwise eif_openssl is not found.
2016-10-14 14:32:04 +02:00
8b43cb909a
Do not use put_readable_string_8_noexception, and just update put_string_8_noexception to accept READABLE_STRING_8.
2016-10-13 21:53:12 +02:00
897f64e4fe
Reuse http_network library.
...
Reintroduced HTTPD_STREAM_SOCKET for backward compatibility, and ease of usage.
Added websocket libraries (client, and protocol).
2016-10-13 16:25:11 +02:00
981942b2d6
Extracted network socket classes from httpd folder, and created a new library/network/http_network library.
...
Renamed HTTPD_STREAM_SOCKET as HTTP_STREAM_SOCKET.
Made http_client (net) library use the new http_network library.
2016-10-12 23:27:55 +02:00
c132d7734b
Moved httpd library from ewsgi/connectors/standalone/lib/httpd to httpd.
...
Reused the http_network library as well inside httpd library.
2016-10-12 22:54:21 +02:00
ed959042d7
Fixed issue with input using "Transfer-Encoding: chunked".
2016-10-12 11:12:37 +02:00
1170417e54
Fixed regression with persistent connection, be sure to keep the remote_info data for all successive requests within a same persistent connection.
2016-10-11 17:34:07 +02:00
f12158e535
Use the ..._noexception network features in the WGI standalone input and output classes.
2016-10-11 10:57:05 +02:00
080881368a
Also check for SOCKET.was_error when accessing the socket data.
2016-10-11 10:29:38 +02:00
Jocelyn Fiat
3e935c7e33
Use `was_error' to get expected behavior on Linux.
2016-10-10 22:27:45 +02:00
Jocelyn Fiat
ad2bb0d1a7
Fixed C compilation on non Windows platform for EiffelStudio until 16.05 .
...
(the required c function are coming with EiffelNet from EiffelStudio 16.11 ).
2016-10-10 22:17:41 +02:00
7a546622bc
Updated deprecated EiffelWeb nino to make it compilable with upcoming EiffelStudio 16.11.
...
Updated various projects to make them up-to-date and compilable with this latest EiffelWeb.
2016-10-10 21:40:15 +02:00
aed7461faf
Improved networking implementation for httpd server and sockets.
...
Use new EiffelNet routines that do not raise exception on error.
Made compilable with 16.05 and dev-and-upcoming release 16.11.
Fixed various minor issues related to base_url, and added comments.
2016-10-08 01:10:16 +02:00
56819d6793
Replace Nino by Standalone whenever it is relevant.
2016-10-08 01:02:12 +02:00
b4fd04ad9f
Updated has_incoming_data comment.
2016-10-05 16:19:48 +02:00
71a98f3c28
Make EiffelWeb standalone easier to debug by using in some locations error instead of exception for network error.
...
- Added C external to use C `recv` feature with error (as opposed to have exception raised on network error).
2016-10-05 10:45:57 +02:00
ed22be2551
Commented the execute_bad_request, since it is not ready and will trigger error most of the time.
2016-10-05 00:04:21 +02:00
77085364ee
Improve socket management for EiffelWeb standalone connector.
2016-10-04 18:49:48 +02:00
0217c6d3f4
First attempt to response with bad request message when bad request is detected.
2016-10-04 13:00:38 +02:00
55fec2423c
Added ssl test case for standalone wsf connector.
2016-10-04 12:59:56 +02:00
612ff243c1
Also display SSL information when verbose is enabled for EiffelWeb standalone connector.
2016-10-02 20:05:44 +02:00
21407f8dcf
Fixed SSL support on the httpd component, and also on the EiffelWeb standalone connector.
...
- the standalone connector support for SSL, is using certicate files for now (no in-memory support).
- to enable ssl support, set ecf variable `httpd_ssl_enabled=true`.
- added the `simple_ssl` example to demonstrate how to have standalone ssl server.
(be careful when using EiffelNet SSL and the http_client library, disable the libcurl
via ecf variable `libcurl_http_client_disabled=true` )
Added support for recv timeout to the EiffelWeb standalone connector.
- made EiffelWeb compilable with 16.05 and upcoming 16.11.
Done via ecfs condition on version to accept EiffelNet with recv_timeout (from 16.11), and without (until 16.05).
- adding recv timeout prevents server to hang for ever if a client wait too long to send data.
Updated various comments.
2016-09-27 16:11:47 +02:00
80254b2278
When possible keep ecf location relative within the same EiffelWeb directory structure.
2016-08-06 10:07:42 +02:00
4283662f43
Removed unwanted .ecf file.
2016-06-22 10:55:41 +02:00
193cc3cbde
Renamed WGI_STANDALONE_CONNECTOR_ACCESS as WGI_STANDALONE_CONNECTOR_EXPORTER.
...
Isolate the websocket implementation in descendant of {WEB_SOCKET_EVENT_I}.
Added very simple echo websocket example.
+ code cleaning.
2016-06-22 10:46:15 +02:00
b49e841ac7
Added WSF standalone_websocket connector, that provides websocket on top of standalone connector.
2016-06-21 23:37:48 +02:00
8ba74e1c90
Log when a persistent connection is reused.
...
Use anchor type on `{WGI_STANDALONE_CONNECTOR}.configuration` and `{WSF_STANDALONE_SERVICE_LAUNCHER}.connector`.
Add access to the socket of standalone input stream from `{WSF_STANDALONE_CONNECTOR_ACCESS}`.
Removed a useless redefination in `WSF_EXECUTION`.
2016-06-21 23:36:22 +02:00
0cecb9594c
Fixed signature of {HTTPD_CONFIGURATION_I}.set_ca_key .
2016-06-16 10:37:26 +02:00
e384a6d6ed
Make it easier to reuse the http network classes.
...
This is to make it easier for websocket solution to reuse httpd implementation.
2016-06-16 10:23:30 +02:00
71a5c086a5
Moved httpd from src to lib, under standalone connector.
2016-06-15 18:04:00 +02:00