MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / apiClient

Function apiClient

e2e/local/oauth-await-longpoll.test.ts:62–68  ·  view source on GitHub ↗
(server: ServerHandle)

Source from the content-addressed store, hash-verified

60const PROMPT_RESOLUTION_BUDGET_MS = 900;
61
62const apiClient = (server: ServerHandle) =>
63 HttpApiClient.make(api, {
64 baseUrl: new URL("/api", server.origin).toString(),
65 transformClient: HttpClient.mapRequest((request) =>
66 HttpClientRequest.setHeader(request, "authorization", `Bearer ${server.token}`),
67 ),
68 }).pipe(Effect.provide(FetchHttpClient.layer));
69
70interface AwaitAnswer {
71 /** When the server answered (response headers received). */

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected