MCPcopy Index your code
hub / github.com/OneNoteDev/WebClipper / func

Method func

src/scripts/http/httpWithRetries.ts:11–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9export class HttpWithRetries extends Http {
10 public static get(url: string, headers?: any, timeout = Http.defaultTimeout, expectedCodes = [200], retryOptions?: RetryOptions): Promise<XMLHttpRequest> {
11 let func = () => {
12 return super.createAndSendRequest("GET", url, headers, expectedCodes, timeout);
13 };
14
15 return PromiseUtils.execWithRetry(func, retryOptions);
16 }

Callers 1

notifySubscribersMethod · 0.80

Calls 1

createAndSendRequestMethod · 0.80

Tested by

no test coverage detected