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

x/hono/request.ts>HonoRequest#arrayBuffer

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