(base: string, id: string, instance: string, options: RequestInit)
| 13 | let INSTANCE = 0; |
| 14 | |
| 15 | function createRequest(base: string, id: string, instance: string, options: RequestInit) { |
| 16 | return fetch(base, { |
| 17 | method: "POST", |
| 18 | ...options, |
| 19 | headers: { |
| 20 | ...options.headers, |
| 21 | "X-Server-Id": id, |
| 22 | "X-Server-Instance": instance, |
| 23 | }, |
| 24 | }); |
| 25 | } |
| 26 | |
| 27 | async function initializeResponse( |
| 28 | base: string, |
no outgoing calls
no test coverage detected
searching dependent graphs…