type alias FormEncoding
Since 0.5.0

The two request encodings a form body can carry.

Returned by formEncodingOf; a caller that wants to BRANCH on the encoding (the CSRF verifier and the upload middleware both do) reads this before touching the body, so a non-form request never reaches a throw.

Definition

"urlencoded" | "multipart"

Usage

import { type FormEncoding } from "common/src/index.ts";