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

x/reno/reno/formethod.ts

A thin, testable routing library designed to sit on top of Deno's standard HTTP module
Go to Latest
import * as reno from "https://deno.land/x/reno@v2.0.75/reno/formethod.ts";

Functions

Takes mappings of HTTP methods and route handler functions, and returns a higher-order route handler that will forward requests to the correct handler by their method. Any requests whose method does not have an associated handler will result in a HTTP 405:

Type Aliases

A union of all possible HTTP methods, as uppercase strings, since deno/std doesn't provide one.