()
| 136 | * follow. |
| 137 | */ |
| 138 | const requestHeaders = (): Record<string, string> => { |
| 139 | const headers: Record<string, string> = { |
| 140 | "content-type": "application/json", |
| 141 | ...getExecutorOrganizationHeaders(), |
| 142 | }; |
| 143 | const authorization = getExecutorServerAuthorizationHeader(); |
| 144 | if (authorization) headers.authorization = authorization; |
| 145 | return headers; |
| 146 | }; |
| 147 | |
| 148 | const post = async (path: string, payload: Record<string, unknown>): Promise<unknown> => { |
| 149 | const response = await doFetch(`${getExecutorApiBaseUrl()}${path}`, { |
no test coverage detected