Module

x/hono/mod.ts>HonoRequest#arrayBuffer

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

.arrayBuffer() parse Request body as an ArrayBuffer

Examples

Example 1

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

Returns

Promise<ArrayBuffer>