class Request
implements IRequest
import { Request } from "https://deno.land/x/mith@v0.9.6/request.ts";
This class represents the request object from Mith framework
Constructors
new
Request(req: ServerRequest)Properties
private
parsedBody: Body | undefinedprivate
parsedQuery: URLSearchParams | undefinedserverRequest: ServerRequest
Methods
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
query(): Promise<URLSearchParams | undefined>