Skip to main content
Module

x/hono/request.ts>HonoRequest#parseBody

Fast, Lightweight, Web-standards
Extremely Popular
Go to Latest
method HonoRequest.prototype.parseBody
import { HonoRequest } from "https://deno.land/x/hono@v4.1.0-rc.1/request.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

Returns

Promise<T>