MCPcopy
hub / github.com/tinyhttp/tinyhttp / status

Function status

packages/send/src/status.ts:10–14  ·  view source on GitHub ↗
(res: Response)

Source from the content-addressed store, hash-verified

8 * @param res Response
9 */
10export const status = <Response extends Res = Res>(res: Response) => (status: number): Response => {
11 res.statusCode = status
12
13 return res
14}

Callers 2

send.test.tsFile · 0.90
extendMiddlewareFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected