Skip to main content
Module

x/sift/mod.ts

Sift is a routing and utility library for Deno Deploy.
Latest
import * as sift from "https://deno.land/x/sift@0.6.0/mod.ts";

Enums

Standard HTTP status codes.

Variables

A record of all the status codes text.

Functions

f
h

Converts an object literal to a JSON string and returns a Response with application/json as the content-type.

Renders JSX components to HTML and returns a Response with text/html as the content-type.

serve() registers "fetch" event listener and invokes the provided route handler for the route with the request as first argument and processed path params as the second.

Serve static files hosted on the internet or relative to your source code.

Validate whether the incoming request meets the provided terms.