MCPcopy
hub / github.com/tinyhttp/tinyhttp / set

Method set

packages/app/src/response.ts:26–26  ·  view source on GitHub ↗
(field: string | Record<string, unknown>, val?: string | any[])

Source from the content-addressed store, hash-verified

24export interface Response<O = any> extends ServerResponse {
25 header(field: string | Record<string, unknown>, val?: string | any[]): Response
26 set(field: string | Record<string, unknown>, val?: string | any[]): Response
27 get(field: string): string | number | string[]
28 send(body: unknown): Response
29 sendFile(path: string, options?: ReadStreamOptions, cb?: (err?: any) => void): Response

Callers 10

jsonpFunction · 0.65
installPackagesFunction · 0.65
saveMethod · 0.65
index.jsFile · 0.65
index.jsFile · 0.65
index.jsFile · 0.65
request.test.tsFile · 0.65
app.test.tsFile · 0.65
response.test.tsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected