x/oak/body.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
type alias Body
import { type Body } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/body.ts?s=Body";

The type returned from the .body() function, which is a tagged union type of all the different types of bodies which can be identified by the .type property which will be of type BodyType and the .value property being a Promise which resolves with the appropriate value, or undefined if there is no body.