Skip to main content
Module

x/mith/mod.ts>Request#body

A middleware framework for Deno's http/s server.
Latest
method Request.prototype.body
import { Request } from "https://deno.land/x/mith@v0.9.6/mod.ts";

Returns the body of a request in a JSON format If the body has not been parsed yet, it will run the body parser and then return the parsed body Performance Note: It only parses the body if the application requests it and only if there is a body to be parsed

Returns

Promise<Body | undefined>

Promise<parsedBody | undefined>