MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / logHttpResult

Function logHttpResult

scripts/integration/cli.mjs:2188–2195  ·  view source on GitHub ↗
(method, requestPath, elapsedMs, buffer)

Source from the content-addressed store, hash-verified

2186}
2187
2188function logHttpResult(method, requestPath, elapsedMs, buffer) {
2189 if (!traceHttp) {
2190 return;
2191 }
2192 const text = buffer.toString("utf8");
2193 const preview = text.length > 0 && text.length <= 1_000 ? `\n${text}` : "";
2194 console.log(`[ok ${elapsedMs}ms] ${method} ${requestPath}${preview}`);
2195}
2196
2197function shellQuote(parts) {
2198 return parts

Callers 1

httpBufferFunction · 0.85

Calls 2

toStringMethod · 0.80
logMethod · 0.80

Tested by

no test coverage detected