Reverted back to export upload_data and upload_filename to ANY (and related features)
This commit is contained in:
@@ -49,6 +49,9 @@ feature -- Settings
|
|||||||
credentials_required: BOOLEAN
|
credentials_required: BOOLEAN
|
||||||
-- If True, the request will precise the HTTP_AUTHORIZATION.
|
-- If True, the request will precise the HTTP_AUTHORIZATION.
|
||||||
|
|
||||||
|
proxy: detachable TUPLE [host: READABLE_STRING_8; port: INTEGER]
|
||||||
|
-- Optional proxy, see {HTTP_CLIENT_SESSION}.proxy
|
||||||
|
|
||||||
feature -- Access
|
feature -- Access
|
||||||
|
|
||||||
headers: HASH_TABLE [READABLE_STRING_8, READABLE_STRING_8]
|
headers: HASH_TABLE [READABLE_STRING_8, READABLE_STRING_8]
|
||||||
@@ -62,11 +65,6 @@ feature -- Access
|
|||||||
form_parameters: HASH_TABLE [READABLE_STRING_32, READABLE_STRING_32]
|
form_parameters: HASH_TABLE [READABLE_STRING_32, READABLE_STRING_32]
|
||||||
-- Form parameters
|
-- Form parameters
|
||||||
|
|
||||||
proxy: detachable TUPLE [host: READABLE_STRING_8; port: INTEGER]
|
|
||||||
-- Optional proxy, see {HTTP_CLIENT_SESSION}.proxy
|
|
||||||
|
|
||||||
feature {HTTP_CLIENT_REQUEST, HTTP_CLIENT_SESSION} -- Internal access
|
|
||||||
|
|
||||||
upload_data: detachable READABLE_STRING_8
|
upload_data: detachable READABLE_STRING_8
|
||||||
-- Upload data
|
-- Upload data
|
||||||
--| Note: make sure to precise the Content-Type header
|
--| Note: make sure to precise the Content-Type header
|
||||||
@@ -75,7 +73,7 @@ feature {HTTP_CLIENT_REQUEST, HTTP_CLIENT_SESSION} -- Internal access
|
|||||||
-- Upload data read from `upload_filename'
|
-- Upload data read from `upload_filename'
|
||||||
--| Note: make sure to precise the Content-Type header
|
--| Note: make sure to precise the Content-Type header
|
||||||
|
|
||||||
feature {HTTP_CLIENT_REQUEST, HTTP_CLIENT_SESSION} -- Status report
|
feature -- Status report
|
||||||
|
|
||||||
has_form_data: BOOLEAN
|
has_form_data: BOOLEAN
|
||||||
do
|
do
|
||||||
@@ -114,19 +112,6 @@ feature -- Element change
|
|||||||
credentials_required := b
|
credentials_required := b
|
||||||
end
|
end
|
||||||
|
|
||||||
feature -- Status setting
|
|
||||||
|
|
||||||
set_proxy (a_host: detachable READABLE_STRING_8; a_port: INTEGER)
|
|
||||||
do
|
|
||||||
if a_host = Void then
|
|
||||||
proxy := Void
|
|
||||||
else
|
|
||||||
proxy := [a_host, a_port]
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
feature {HTTP_CLIENT_REQUEST, HTTP_CLIENT_SESSION} -- Internal Element change
|
|
||||||
|
|
||||||
set_upload_data (a_data: like upload_data)
|
set_upload_data (a_data: like upload_data)
|
||||||
require
|
require
|
||||||
has_no_upload_data: not has_upload_data
|
has_no_upload_data: not has_upload_data
|
||||||
@@ -141,6 +126,17 @@ feature {HTTP_CLIENT_REQUEST, HTTP_CLIENT_SESSION} -- Internal Element change
|
|||||||
upload_filename := a_fn
|
upload_filename := a_fn
|
||||||
end
|
end
|
||||||
|
|
||||||
|
feature -- Status setting
|
||||||
|
|
||||||
|
set_proxy (a_host: detachable READABLE_STRING_8; a_port: INTEGER)
|
||||||
|
do
|
||||||
|
if a_host = Void then
|
||||||
|
proxy := Void
|
||||||
|
else
|
||||||
|
proxy := [a_host, a_port]
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
feature -- Conversion helpers
|
feature -- Conversion helpers
|
||||||
|
|
||||||
query_parameters_to_url_encoded_string: STRING_8
|
query_parameters_to_url_encoded_string: STRING_8
|
||||||
|
|||||||
Reference in New Issue
Block a user