[skip ci] rename
This commit is contained in:
1 parent
e6302e48fe
commit
4e8dfe1a23
1 file changed
+4
-4
@@ -374,7 +374,7 @@ namespace HttpClient
|
||||
response = invalid
|
||||
|
||||
response = m.AwaitInternal()
|
||||
if response.IsSuccess() or response.TimedOut() or response.IsCancelled()
|
||||
if response.IsSuccess() or response.IsTimedOut() or response.IsCancelled()
|
||||
return response
|
||||
end if
|
||||
triesLeft -= 1
|
||||
@@ -413,7 +413,7 @@ namespace HttpClient
|
||||
sleep(backoffMs)
|
||||
|
||||
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
|
||||
end if
|
||||
triesLeft -= 1
|
||||
@@ -554,7 +554,7 @@ namespace HttpClient
|
||||
return m.request._cache <> invalid
|
||||
end function
|
||||
|
||||
function TimedOut() as boolean
|
||||
function IsTimedOut() as boolean
|
||||
return not m.IsCached() and m.event = invalid
|
||||
end function
|
||||
|
||||
@@ -620,7 +620,7 @@ namespace HttpClient
|
||||
else
|
||||
if m.request._sent <> true
|
||||
m._errorMessage = "Request not sent."
|
||||
else if m.TimedOut()
|
||||
else if m.IsTimedOut()
|
||||
m._errorMessage = "Request timed out."
|
||||
else if m.IsCancelled()
|
||||
m._errorMessage = "Request cancelled."
|
||||
|
||||
Reference in new issue
Block a user