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

Function traceRestRequest

apps/kimi-web/src/debug/trace.ts:162–179  ·  view source on GitHub ↗
(info: {
  method: string;
  path: string;
  url: string;
  requestId: string;
  body?: unknown;
})

Source from the content-addressed store, hash-verified

160// ---------------------------------------------------------------------------
161
162export function traceRestRequest(info: {
163 method: string;
164 path: string;
165 url: string;
166 requestId: string;
167 body?: unknown;
168}): void {
169 if (!isTraceEnabled()) return;
170 push({
171 source: 'rest',
172 kind: 'rest:request',
173 label: `→ ${info.method} ${info.path}`,
174 method: info.method,
175 path: info.path,
176 requestId: info.requestId,
177 detail: { url: info.url, body: detailOf(info.body) },
178 });
179}
180
181export function traceRestResponse(info: {
182 method: string;

Callers 3

getBlobMethod · 0.90
postFormMethod · 0.90
requestMethod · 0.90

Calls 3

isTraceEnabledFunction · 0.85
detailOfFunction · 0.85
pushFunction · 0.70

Tested by

no test coverage detected