(body: string, contentType?: string)
| 276 | * @since 4.0.0 |
| 277 | */ |
| 278 | export const text = (body: string, contentType?: string): Uint8Array => |
| 279 | uint8Array(encoder.encode(body), contentType ?? "text/plain") |
| 280 | |
| 281 | /** |
| 282 | * Creates a JSON HTTP body using `JSON.stringify`, throwing if serialization fails. |
no test coverage detected