MCPcopy
hub / github.com/CodebuffAI/codebuff / createResponse

Function createResponse

cli/src/__tests__/release/proxy-http-get.test.ts:28–34  ·  view source on GitHub ↗
(statusCode: number, headers: Record<string, string>, body = '')

Source from the content-addressed store, hash-verified

26]
27
28function createResponse(statusCode: number, headers: Record<string, string>, body = '') {
29 const response = Readable.from(body.length > 0 ? [body] : [])
30 return Object.assign(response, {
31 statusCode,
32 headers,
33 })
34}
35
36function createConnectRequest({
37 statusCode = 200,

Callers 1

getFunction · 0.85

Calls 1

fromMethod · 0.80

Tested by

no test coverage detected