Module

x/hono/request.ts>HonoRequest#text

Fast, Lightweight, Web-standards
Extremely Popular
Go to Latest
method HonoRequest.prototype.text
import { HonoRequest } from "https://dotland.deno.dev/x/hono@v4.2.2/request.ts";

.text() can parse Request body of type text/plain

Examples

Example 1

app.post('/entry', async (c) => {
  const body = await c.req.text()
})

Returns

Promise<string>