Skip to main content
Module

x/dext/deps/mod.ts>oak.BodyOptions

The Preact Framework for Deno
Latest
interface oak.BodyOptions
import { type oak } from "https://deno.land/x/dext@0.10.5/deps/mod.ts";
const { BodyOptions } = oak;

Type Parameters

optional
T extends BodyType = BodyType

Properties

optional
type: T

Instead of utilizing the content type of the request, return the body as the type specified.

optional
contentTypes: { raw?: string[]; json?: string[]; form?: string[]; formData?: string[]; text?: string[]; }

A map of extra content types to determine how to parse the body.