Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/http_server/lib/data/body.ts>Body

๐ŸŒ Light-weight http server
Latest
class Body
import { Body } from "https://deno.land/x/http_server@v2.0.5/lib/data/body.ts";

Constructors

new
Body(request: Request)

Methods

buffer(): Promise<ArrayBuffer>

Get the request body as an array buffer.

form(): Promise<FormData | null>

Get the request body as a form data.

json(): Promise<unknown>

Get the request body as a JSON object.

text(): Promise<string>

Get the request body as a string.