Module

x/hono/mod.ts>HonoRequest#parseBody

Web Framework built on Web Standards
Extremely Popular
Go to Latest
method HonoRequest.prototype.parseBody
import { HonoRequest } from "https://dotland.deno.dev/x/hono@v4.2.6/mod.ts";

.parseBody() can parse Request body of type multipart/form-data or application/x-www-form-urlencoded

Examples

Example 1

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

Type Parameters

optional
T extends BodyData = BodyData

Parameters

optional
options: ParseBodyOptions

Returns

Promise<T>