(method: HttpMethod, path: string, callOpts?: RequestOptions)
| 277 | const state = compileState(opts) |
| 278 | |
| 279 | const typedCall = async <T>(method: HttpMethod, path: string, callOpts?: RequestOptions): Promise<T> => { |
| 280 | const finalOpts: RequestOptions = { ...callOpts, method } |
| 281 | const built = buildRequest(state, path, finalOpts, true) |
| 282 | const res = await execute(state, built.request, built.resolved, built.effectiveTimeoutMs, built.userSignal) |
| 283 | return parseJsonBody<T>(res) |
| 284 | } |
| 285 | |
| 286 | const rawFetch = (path: string, callOpts?: RequestOptions): Promise<Response> => { |
| 287 | const finalOpts: RequestOptions = { ...callOpts, method: callOpts?.method ?? 'GET' } |
no test coverage detected