Skip to main content
Module

x/parsec/mod.ts

🌌 Tiny body parser for Deno. Port of the milliparsec library.
Latest
import * as parsec from "https://deno.land/x/parsec@0.2.1/mod.ts";

Variables

Universal body parser function

Parse a request with JSON body and Content-Type: application/json header.

Parse a form with the body and Content-Type: application/x-www-urlencoded header.

Interfaces

Request interface extension with additional parsedBody property (where parsed body gets stored)