Provided a way to report cURL error code back to http_client, via HTTP_CLIENT_RESPONSE

This commit is contained in:
Jocelyn Fiat
2013-02-27 21:49:03 +01:00
parent 598f6df366
commit 92d3f642ac
2 changed files with 17 additions and 4 deletions

View File

@@ -27,6 +27,8 @@ feature -- Status
error_occurred: BOOLEAN
-- Error occurred during request
error_message: detachable READABLE_STRING_8
feature {HTTP_CLIENT_REQUEST} -- Status setting
set_error_occurred (b: BOOLEAN)
@@ -35,6 +37,13 @@ feature {HTTP_CLIENT_REQUEST} -- Status setting
error_occurred := b
end
set_error_message (m: READABLE_STRING_8)
-- Set `error_message' to `m'
do
set_error_occurred (True)
error_message := m
end
feature -- Access
url: STRING_8