MCPcopy Index your code
hub / github.com/coder/code-server / createRequest

Function createRequest

test/unit/node/routes/errors.test.ts:58–69  ·  view source on GitHub ↗
(args: UserProvidedArgs = {})

Source from the content-addressed store, hash-verified

56})
57
58async function createRequest(args: UserProvidedArgs = {}): Promise<express.Request> {
59 return {
60 headers: {
61 accept: ["text/html"],
62 },
63 originalUrl: "http://example.com/test",
64 query: {
65 to: "test",
66 },
67 args: await setDefaults(args),
68 } as unknown as express.Request
69}

Callers 1

errors.test.tsFile · 0.85

Calls 1

setDefaultsFunction · 0.90

Tested by

no test coverage detected