Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/masx200_deno_http_middleware/deps.ts

Deno 原生 HTTP 服务器的中间件框架
Go to Latest
import * as masx200DenoHttpMiddleware from "https://deno.land/x/masx200_deno_http_middleware@2.2.2/deps.ts";

Variables

A record of all the status codes text.

Functions

Make an assertion, error will be thrown if expr does not have truthy value.

Make an assertion that actual and expected are equal, deeply. If not deeply equal, then throw.

Make an assertion that obj is an instance of type. If not then throw.

Make an assertion that actual and expected are not equal, deeply. If not then throw.

Encodes src into src.length * 2 bytes.

Create an HTML response. Content-Type is set to "text/html; charset=utf-8" unless explicitly set.

Create a JSON response. Content-Type is set to "application/json; charset=utf-8" unless explicitly set.

Create a text response. Content-Type is set to "text/plain; charset=utf-8" unless explicitly set.