- PATH_INFO is percent decoded but still utf-8 encoded, this is available via WGI.path_info and WSF_REQUEST.utf_8_path_info. - Added WSF_REQUEST.percent_encoded_path_info - and WSF_REQUEST.path_info remains the unicode value for PATH_INFO Added cgi_variables: WGI_REQUEST_CGI_VARIABLES to have a simple and quick view on CGI variables Added execution_variables to be able to iterate on execution variables. Added PERCENT_ENCODER.percent_decoded_utf_8_string Improved the WSF_DEBUG_HANDLER to provide more information thanks to WSF_DEBUG_INFORMATION object.
70 lines
1.5 KiB
Plaintext
70 lines
1.5 KiB
Plaintext
note
|
|
description: "[
|
|
Summary description for {URL_ENCODER}.
|
|
|
|
See: http://www.faqs.org/rfcs/rfc3986.html
|
|
]"
|
|
legal: "See notice at end of class."
|
|
status: "See notice at end of class."
|
|
date: "$Date$"
|
|
revision: "$Revision$"
|
|
|
|
class
|
|
URL_ENCODER
|
|
|
|
inherit
|
|
ENCODER [READABLE_STRING_32, READABLE_STRING_8]
|
|
|
|
PLATFORM
|
|
export
|
|
{NONE} all
|
|
end
|
|
|
|
PERCENT_ENCODER
|
|
rename
|
|
percent_encoded_string as general_encoded_string,
|
|
percent_decoded_string as general_decoded_string,
|
|
percent_decoded_utf_8_string as general_decoded_utf_8_string
|
|
end
|
|
|
|
feature -- Access
|
|
|
|
name: READABLE_STRING_8
|
|
do
|
|
create {IMMUTABLE_STRING_8} Result.make_from_string ("URL-encoded")
|
|
end
|
|
|
|
feature -- Encoder
|
|
|
|
encoded_string (s: READABLE_STRING_32): STRING_8
|
|
-- URL-encoded value of `s'.
|
|
do
|
|
Result := general_encoded_string (s)
|
|
end
|
|
|
|
feature -- Decoder
|
|
|
|
decoded_string (v: READABLE_STRING_8): STRING_32
|
|
-- The URL-encoded equivalent of the given string
|
|
do
|
|
Result := general_decoded_string (v)
|
|
end
|
|
|
|
decoded_utf_8_string (v: READABLE_STRING_8): STRING_8
|
|
-- The URL-encoded equivalent of the given string
|
|
do
|
|
Result := general_decoded_utf_8_string (v)
|
|
end
|
|
|
|
note
|
|
copyright: "Copyright (c) 2011-2014, Eiffel Software and others"
|
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
|
source: "[
|
|
Eiffel Software
|
|
5949 Hollister Ave., Goleta, CA 93117 USA
|
|
Telephone 805-685-1006, Fax 805-685-6869
|
|
Website http://www.eiffel.com
|
|
Customer support http://support.eiffel.com
|
|
]"
|
|
end
|