# Shall this request be verbose?
var verbose: Bool = false is writable
- # Launch request method
- fun execute: CurlResponse is abstract
-
# Intern perform method, lowest level of request launching
private fun perform: nullable CurlResponseFailed
do
end
# Execute HTTP request with settings configured through attribute
- redef fun execute
+ fun execute: CurlResponse
do
if not self.curl.is_ok then return answer_failure(0, "Curl instance is not correctly initialized")
end
# Execute Mail request with settings configured through attribute
- redef fun execute
+ fun execute: nullable CurlResponseFailed
do
if not self.curl.is_ok then return answer_failure(0, "Curl instance is not correctly initialized")
var err_resp = perform
if err_resp != null then return err_resp
- return new CurlMailResponseSuccess
+ return null
end
end
end
end
-# Success Response Class of mail request
-class CurlMailResponseSuccess
- super CurlResponseSuccessIntern
-end
-
# Success Response Class of a downloaded File
class CurlFileResponseSuccess
super CurlResponseSuccessIntern