MCPcopy Create free account
hub / github.com/mswjs/interceptors / handleUserRequest

Function handleUserRequest

test/modules/http/intercept/https.request.test.ts:11–13  ·  view source on GitHub ↗
(req, res)

Source from the content-addressed store, hash-verified

9
10const httpServer = new HttpServer((app) => {
11 const handleUserRequest: RequestHandler = (req, res) => {
12 res.status(200).send('user-body').end()
13 }
14
15 app.get('/user', handleUserRequest)
16 app.post('/user', handleUserRequest)

Callers

nothing calls this directly

Calls 3

endMethod · 0.80
statusMethod · 0.80
sendMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…