Introduce WSF_COMPRESSION (experimental)

This commit is contained in:
2016-12-14 17:33:52 +01:00
parent e14bb568d2
commit f4ed19d679
6 changed files with 283 additions and 228 deletions

View File

@@ -32,13 +32,13 @@ feature {NONE} -- Initialization
do
create fhdl.make_hidden ("www")
fhdl.set_directory_index (<<"index.html">>)
fhdl.set_default_compression_format
fhdl.enable_compression_for_media_type ({HTTP_MIME_TYPES}.image_jpg)
fhdl.compression.set_default_compression_format
fhdl.compression.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)
end)
router.handle_with_request_methods ("/", fhdl, router.methods_GET)
router.handle ("/", fhdl, router.methods_GET)
end