(text: string, status?: number, contentType?: string)
| 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( |
no outgoing calls
no test coverage detected