Skip to main content
Module

x/http_router/types.ts>MethodRouting

HTTP request router for standard Request and Response
Latest
interface MethodRouting
import { type MethodRouting } from "https://deno.land/x/http_router@3.0.0-beta.7/types.ts";

HTTP method routing API.

Properties

readonly
get: (handler: Handler) => this

HTTP request GET matching API.

readonly
head: (handler: Handler) => this

HTTP request HEAD matching API.

readonly
post: (handler: Handler) => this

HTTP request POST matching API.

readonly
put: (handler: Handler) => this

HTTP request PUT matching API.

readonly
delete: (handler: Handler) => this

HTTP request DELETE matching API.

readonly
patch: (handler: Handler) => this

HTTP request PATCH matching API.

readonly
options: (handler: Handler) => this

HTTP request OPTIONS matching API.

readonly
connect: (handler: Handler) => this

HTTP request CONNECT matching API.

readonly
trace: (handler: Handler) => this

HTTP request TRACE matching API.