MCPcopy
hub / github.com/MiniMax-AI/cli / RequestOpts

Interface RequestOpts

src/client/http.ts:10–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8import { CLI_VERSION } from '../version';
9
10export interface RequestOpts {
11 url: string;
12 method?: string;
13 body?: unknown;
14 headers?: Record<string, string>;
15 timeout?: number;
16 stream?: boolean;
17 noAuth?: boolean;
18 authStyle?: 'bearer' | 'x-api-key';
19}
20
21export async function request(config: Config, opts: RequestOpts): Promise<Response> {
22 const isFormData = typeof FormData !== 'undefined' && opts.body instanceof FormData;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected