MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / text

Method text

packages/core-apps/src/http.ts:24–28  ·  view source on GitHub ↗
(text: string, status?: number, contentType?: string)

Source from the content-addressed store, hash-verified

22 }
23
24 text(text: string, status?: number, contentType?: string) {
25 return this.response
26 .writeHead(status ?? 200, { "Content-Type": contentType || "text/plain" })
27 .end(text.endsWith("\n") ? text : `${text}\n`);
28 }
29
30 json(value: any, pretty?: boolean) {
31 return this.text(

Callers 4

#createHttpServerMethod · 0.95
jsonMethod · 0.95
#createHttpServerMethod · 0.95
#createHttpServerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected