Extracted compression code from wsf, and provided new wsf_compression library.

Renamed features.
This commit is contained in:
2016-12-06 14:18:51 +01:00
parent 05d37439bc
commit e14bb568d2
8 changed files with 425 additions and 284 deletions

View File

@@ -7,7 +7,6 @@ class
SERVICE_COMPRESSION_EXECUTION
inherit
WSF_ROUTED_EXECUTION
redefine
initialize,
@@ -29,12 +28,12 @@ feature {NONE} -- Initialization
setup_router
local
fhdl: WSF_FILE_SYSTEM_HANDLER
fhdl: WSF_FILE_SYSTEM_HANDLER_WITH_COMPRESSION
do
create fhdl.make_hidden ("www")
fhdl.set_directory_index (<<"index.html">>)
fhdl.set_default_compression
fhdl.set_custom_media_type ({HTTP_MIME_TYPES}.image_jpg)
fhdl.set_default_compression_format
fhdl.enable_compression_for_media_type ({HTTP_MIME_TYPES}.image_jpg)
fhdl.set_not_found_handler (agent (ia_uri: READABLE_STRING_8; ia_req: WSF_REQUEST; ia_res: WSF_RESPONSE)
do
execute_default (ia_req, ia_res)