Skip to main content
Module

x/danet/src/deps.ts>HonoRequest#text

The most mature backend framework for Deno. Create awesome HTTP and WebSocket server as well as KVQueue workers !
Latest
method HonoRequest.prototype.text
import { HonoRequest } from "https://deno.land/x/danet@2.4.1/src/deps.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>