MCPcopy Index your code
hub / github.com/tinyhttp/tinyhttp / sendFile

Method sendFile

packages/app/src/response.ts:29–29  ·  view source on GitHub ↗
(path: string, options?: ReadStreamOptions, cb?: (err?: any) => void)

Source from the content-addressed store, hash-verified

27 get(field: string): string | number | string[]
28 send(body: unknown): Response
29 sendFile(path: string, options?: ReadStreamOptions, cb?: (err?: any) => void): Response
30 json(body: unknown): Response
31 status(status: number): Response
32 sendStatus(statusCode: number): Response

Callers 3

index.jsFile · 0.80
index.jsFile · 0.80
server.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected