MCPcopy
hub / github.com/tinyhttp/tinyhttp / createReq

Function createReq

test_helpers/createReq.ts:1–6  ·  view source on GitHub ↗
(socketAddr: string, headers?: Record<string, any>)

Source from the content-addressed store, hash-verified

1export const createReq = (socketAddr: string, headers?: Record<string, any>) => ({
2 connection: {
3 remoteAddress: socketAddr
4 },
5 headers: headers || {}
6})

Callers 2

proxy-addr.test.tsFile · 0.90
forwarded.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected