[skip ci] rename

This commit is contained in:
Brahim Hadriche committed 2024-01-11 21:19:05 -05:00
1 parent e6302e48fe
commit 4e8dfe1a23
1 file changed
+4 -4
@@ -374,7 +374,7 @@ namespace HttpClient
response = invalid response = invalid
response = m.AwaitInternal() response = m.AwaitInternal()
if response.IsSuccess() or response.TimedOut() or response.IsCancelled() if response.IsSuccess() or response.IsTimedOut() or response.IsCancelled()
return response return response
end if end if
triesLeft -= 1 triesLeft -= 1
@@ -413,7 +413,7 @@ namespace HttpClient
sleep(backoffMs) sleep(backoffMs)
response = m.AwaitInternal() response = m.AwaitInternal()
if response.IsSuccess() or response.TimedOut() or response.IsCancelled() or response.StatusCode() < 500 if response.IsSuccess() or response.IsTimedOut() or response.IsCancelled() or response.StatusCode() < 500
return response return response
end if end if
triesLeft -= 1 triesLeft -= 1
@@ -554,7 +554,7 @@ namespace HttpClient
return m.request._cache <> invalid return m.request._cache <> invalid
end function end function
function TimedOut() as boolean function IsTimedOut() as boolean
return not m.IsCached() and m.event = invalid return not m.IsCached() and m.event = invalid
end function end function
@@ -620,7 +620,7 @@ namespace HttpClient
else else
if m.request._sent <> true if m.request._sent <> true
m._errorMessage = "Request not sent." m._errorMessage = "Request not sent."
else if m.TimedOut() else if m.IsTimedOut()
m._errorMessage = "Request timed out." m._errorMessage = "Request timed out."
else if m.IsCancelled() else if m.IsCancelled()
m._errorMessage = "Request cancelled." m._errorMessage = "Request cancelled."