Adopted convention name and value or values for WSF_VALUE and descendant (WSF_STRING ...)
kept `key' as redirection, and also string as obsolete redirection. Router: provide a way to pass the request methods without using manifest string, thanks to WSF_ROUTER_METHODS so instead of using manifest array or manifest strings, just create an instance of WSF_ROUTER_METHODS for convenience, WSF_ROUTER provides a few `methods_...' returning prebuilt WSF_ROUTER_METHODS objects Improved code related to unicode handling in URL, and parameters (before the framework was doing too much)
This commit is contained in:
@@ -104,7 +104,7 @@ feature -- Element change
|
||||
answer_head_request_method := b
|
||||
end
|
||||
|
||||
feature {WSF_SERVICE, WSF_RESPONSE} -- Basic operations
|
||||
feature {WSF_RESPONSE} -- Output
|
||||
|
||||
send_to (res: WSF_RESPONSE)
|
||||
do
|
||||
|
||||
@@ -150,7 +150,7 @@ feature -- Element change
|
||||
update_content_length
|
||||
end
|
||||
|
||||
feature {WSF_SERVICE, WSF_RESPONSE} -- Output
|
||||
feature {WSF_RESPONSE} -- Output
|
||||
|
||||
send_to (res: WSF_RESPONSE)
|
||||
local
|
||||
|
||||
@@ -110,7 +110,7 @@ feature -- Element change
|
||||
body := b
|
||||
end
|
||||
|
||||
feature {WSF_SERVICE, WSF_RESPONSE} -- Output
|
||||
feature {WSF_RESPONSE} -- Output
|
||||
|
||||
send_to (res: WSF_RESPONSE)
|
||||
local
|
||||
@@ -147,8 +147,20 @@ feature {WSF_SERVICE, WSF_RESPONSE} -- Output
|
||||
res.put_string (s)
|
||||
end
|
||||
|
||||
feature -- HTML facilities
|
||||
|
||||
html_encoded_string (s: READABLE_STRING_32): READABLE_STRING_8
|
||||
do
|
||||
Result := html_encoder.encoded_string (s)
|
||||
end
|
||||
|
||||
feature {NONE} -- HTML Generation
|
||||
|
||||
html_encoder: HTML_ENCODER
|
||||
once ("thread")
|
||||
create Result
|
||||
end
|
||||
|
||||
append_html_head_code (s: STRING_8)
|
||||
local
|
||||
t: like title
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
note
|
||||
description: "[
|
||||
Immediate redirection with HTML content
|
||||
Immediate redirection with HTML content
|
||||
]"
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
@@ -41,7 +41,7 @@ feature -- Element change
|
||||
url_location := a_url_location
|
||||
end
|
||||
|
||||
feature {WSF_SERVICE, WSF_RESPONSE} -- Output
|
||||
feature {WSF_RESPONSE} -- Output
|
||||
|
||||
send_to (res: WSF_RESPONSE)
|
||||
local
|
||||
|
||||
@@ -79,7 +79,7 @@ feature -- Element change
|
||||
l_body.append (a_string)
|
||||
end
|
||||
|
||||
feature {WSF_SERVICE, WSF_RESPONSE} -- Output
|
||||
feature {WSF_RESPONSE} -- Output
|
||||
|
||||
send_to (res: WSF_RESPONSE)
|
||||
local
|
||||
|
||||
@@ -70,7 +70,7 @@ feature -- Element change
|
||||
content_type := Void
|
||||
end
|
||||
|
||||
feature {WSF_SERVICE, WSF_RESPONSE} -- Output
|
||||
feature {WSF_RESPONSE} -- Output
|
||||
|
||||
send_to (res: WSF_RESPONSE)
|
||||
local
|
||||
|
||||
Reference in New Issue
Block a user