MCPcopy Create free account
hub / github.com/arctic-cli/interface / makeMethod

Function makeMethod

packages/sdk/js/src/gen/client/client.gen.ts:181–194  ·  view source on GitHub ↗
(method: Required<Config>["method"])

Source from the content-addressed store, hash-verified

179 }
180
181 const makeMethod = (method: Required<Config>["method"]) => {
182 const fn = (options: RequestOptions) => request({ ...options, method })
183 fn.sse = async (options: RequestOptions) => {
184 const { opts, url } = await beforeRequest(options)
185 return createSseClient({
186 ...opts,
187 body: opts.body as BodyInit | null | undefined,
188 headers: opts.headers as unknown as Record<string, string>,
189 method,
190 url,
191 })
192 }
193 return fn
194 }
195
196 return {
197 buildUrl,

Callers 1

createClientFunction · 0.85

Calls 2

createSseClientFunction · 0.90
beforeRequestFunction · 0.70

Tested by

no test coverage detected