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)
This commit is contained in:
2020-10-02 15:02:06 +02:00
parent 75380a27fe
commit 30a5e087ae
80 changed files with 444 additions and 260 deletions

View File

@@ -51,7 +51,7 @@ feature {NONE} -- Initialization
router: WSF_ROUTER
resource: detachable STRING
resource: detachable READABLE_STRING_8
is_hidden: BOOLEAN
-- Current mapped handler should be hidden from self documentation

View File

@@ -26,7 +26,7 @@ feature {NONE} -- Initialization
router := a_router
end
make_with_resource (req: WSF_REQUEST; a_router: WSF_ROUTER; a_resource: STRING)
make_with_resource (req: WSF_REQUEST; a_router: WSF_ROUTER; a_resource: READABLE_STRING_8)
-- Make Current for request `req' and router `a_router'
-- and use `a_resource' to also generate links to this documentation via `a_resource'
--| note: it could be "/doc" or "/api/doc" or ...
@@ -51,7 +51,7 @@ feature -- Access
router: WSF_ROUTER
resource: detachable STRING_8
resource: detachable READABLE_STRING_8
feature -- Properties
@@ -310,13 +310,13 @@ feature {NONE} -- Implementation
Result := resource /= Void
end
doc_url (a_api: STRING_8): STRING_8
doc_url (a_api: READABLE_STRING_8): STRING_8
-- URL to show the documentation related to `a_api'.
require
doc_url_supported: doc_url_supported
do
if attached resource as s then
Result := request.script_url (s) + "?api=" + url_encoder.encoded_string (a_api)
Result := request.script_url (s) + "?api=" + url_encoder.general_encoded_string (a_api)
else
Result := request.script_url ("")
end
@@ -333,7 +333,7 @@ feature {NONE} -- Implementation
end
note
copyright: "2011-2017, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Colin Adams, Eiffel Software and others"
copyright: "2011-2020, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Colin Adams, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[
Eiffel Software