x/oak/mod.ts

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

When reading a body in full via .read() from a FormDataReader this is what is what the value is resolved, providing a split between any fields, and multi-part files that were provided.

Properties

fields: Record<string, string>[src]

A record of form parts where the key was the name of the part and the value was the value of the part. This record does not include any files that were part of the form data.

Note: Duplicate names are not included in this record, if there are duplicates, the last value will be the value that is set here. If there is a possibility of duplicate values, use the .stream() method on FormDataReader to iterate over the values.

optional
files: FormDataFile[]
[src]

An array of any files that were part of the form data.