MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / enqueue

Method enqueue

packages/oauth/test/oauth.test.ts:77–82  ·  view source on GitHub ↗

Queue a response for the given POST path (FIFO).

(path: string, response: FakeResponse)

Source from the content-addressed store, hash-verified

75
76 /** Queue a response for the given POST path (FIFO). */
77 enqueue(path: string, response: FakeResponse): void {
78 const key = `POST ${path}`;
79 const list = this.responses.get(key) ?? [];
80 list.push(response);
81 this.responses.set(key, list);
82 }
83
84 private handle(req: IncomingMessage, res: ServerResponse): void {
85 const chunks: Buffer[] = [];

Callers

nothing calls this directly

Calls 3

getMethod · 0.65
setMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected