Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/hono/mod.ts>HonoRequest#text

Web Framework built on Web Standards
Extremely Popular
Go to Latest
method HonoRequest.prototype.text
import { HonoRequest } from "https://deno.land/x/hono@v4.2.7/mod.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>