Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/mandarinets/main-core/utils/httpUtils.ts>HttpUtils

Mandarine.TS is a typescript, decorator-driven framework that allows you to create server-side applications. Mandarine.TS provides a range of built-in solutions such as Dependency Injection, Components, ORM and more. Under its umbrella, Mandarine.TS has 4 modules: Core, Data, Security and MVC, these modules will offer you the requirements to build a Mandarine-powered application.
Latest
class HttpUtils
import { HttpUtils } from "https://deno.land/x/mandarinets@v2.3.2/main-core/utils/httpUtils.ts";

Static Methods

assignContentType(context: Mandarine.Types.RequestContext)
createCookie(requestContext: Mandarine.Types.RequestContext, cookieData: Mandarine.MandarineMVC.Cookie): string | undefined
getCookies(req: any): Mandarine.MandarineCore.Cookies
handleMultipartFormData(body: any, contentType: string): Mandarine.MandarineMVC.MultipartFormData
parseBody(request: Request): Promise<any>
verifyCorsOrigin(origin: string | RegExp | Array<string | RegExp>, requestOrigin: string): boolean