MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / convertToStandardRequest

Function convertToStandardRequest

packages/hono/src/index.ts:50–65  ·  view source on GitHub ↗
(req: HonoRequest)

Source from the content-addressed store, hash-verified

48}
49
50function convertToStandardRequest(req: HonoRequest): Request {
51 const headers: Record<string, string> = {};
52 const entries = req.raw.headers.entries();
53
54 for (const [key, value] of entries) {
55 headers[key] = value;
56 }
57
58 return new Request(req.raw.url, {
59 method: req.raw.method,
60 headers,
61 body: req.raw.body,
62 // @ts-ignore
63 duplex: "half",
64 });
65}

Callers 2

createMiddlewareFunction · 0.70
addMiddlewareFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…