Fixed WGI_HTTPD_REQUEST_HANDLER.process_rescue
Fixed WGI_STANDALONE_OUTPUT_STREAM.is_available Added WGI_STANDALONE_RESPONSE_STREAM.is_persistent_connection_supported
This commit is contained in:
@@ -9,6 +9,7 @@ class
|
||||
inherit
|
||||
WGI_FILTER_RESPONSE
|
||||
redefine
|
||||
set_status_code,
|
||||
commit,
|
||||
put_character,
|
||||
put_string,
|
||||
@@ -74,6 +75,19 @@ feature {NONE} -- Implementation
|
||||
header_committed: header_committed
|
||||
end
|
||||
|
||||
feature -- Status setting
|
||||
|
||||
set_status_code (a_code: INTEGER; a_reason_phrase: detachable READABLE_STRING_8)
|
||||
-- Set response status code with custom `a_reason_phrase' if precised
|
||||
-- Should be done before sending any data back to the client
|
||||
do
|
||||
if a_reason_phrase /= Void then
|
||||
wsf_response.set_status_code_with_reason_phrase (a_code, a_reason_phrase)
|
||||
else
|
||||
wsf_response.set_status_code (a_code)
|
||||
end
|
||||
end
|
||||
|
||||
feature -- Status report
|
||||
|
||||
message_writable: BOOLEAN = True
|
||||
@@ -116,7 +130,7 @@ feature -- Output operation
|
||||
end
|
||||
|
||||
note
|
||||
copyright: "2011-2013, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Eiffel Software and others"
|
||||
copyright: "2011-2015, 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
|
||||
|
||||
Reference in New Issue
Block a user