RetryEvent
Defined in: clients/http-client/src/retry-events.ts:2
A request about to be sent again after a transport failure, or an HTTP status the client was told to retry.
Properties
Section titled “Properties”attempt
Section titled “attempt”attempt:
number
Defined in: clients/http-client/src/retry-events.ts:15
The number of the send that is about to happen: 2 for the first retry.
code:
string
Defined in: clients/http-client/src/retry-events.ts:13
What went wrong (ECONNRESET, UND_ERR_CONNECT_TIMEOUT, or HTTP 503 for a retried status); a failure with no
known cause is never retried.
delayMs
Section titled “delayMs”delayMs:
number
Defined in: clients/http-client/src/retry-events.ts:19
How long it waits before sending.
method
Section titled “method”method:
string
Defined in: clients/http-client/src/retry-events.ts:6
The HTTP method of the request, such as GET.
of:
number
Defined in: clients/http-client/src/retry-events.ts:17
How many sends there can be in all (the retries plus the first).
path:
string
Defined in: clients/http-client/src/retry-events.ts:8
The request path, relative to the client’s base URL.
vendor?
Section titled “vendor?”
optionalvendor?:string
Defined in: clients/http-client/src/retry-events.ts:4
The client’s vendor label, e.g. GitHub.