(data: any)
| 28 | } |
| 29 | |
| 30 | send(data: any) { |
| 31 | // if (data instanceof Stream) { |
| 32 | // return |
| 33 | // } |
| 34 | |
| 35 | if (typeof data === 'object' || data === undefined) { |
| 36 | return this.json(data) |
| 37 | } |
| 38 | |
| 39 | return new Response(data, this.makeResponseOptions()) |
| 40 | } |
| 41 | |
| 42 | text(text: string) { |
| 43 | return new Response(text, this.makeResponseOptions()) |
no test coverage detected