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

Method format

packages/app/src/response.ts:43–43  ·  view source on GitHub ↗
(obj: FormatProps)

Source from the content-addressed store, hash-verified

41 render(file: string, data?: Record<string, any>, options?: TemplateEngineOptions<O>): Response
42 vary(field: string): Response
43 format(obj: FormatProps): Response
44 redirect(url: string, status?: number): Response
45 type(type: string): Response
46 download(path: string, filename: string, options?: DownloadOptions, cb?: (err?: any) => void): Response

Callers 4

normalizeTypeFunction · 0.80
compileArgsFunction · 0.80
index.jsFile · 0.80
server.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected