Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/oak/application.ts>HandleMethod

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
interface HandleMethod
import { type HandleMethod } from "https://deno.land/x/oak@v12.1.0/application.ts";

Call Signatures

(
request: Request,
conn?: Deno.Conn,
secure?: boolean,
): Promise<Response | undefined>

Handle an individual server request, returning the server response. This is similar to .listen(), but opening the connection and retrieving requests are not the responsibility of the application. If the generated context gets set to not to respond, then the method resolves with undefined, otherwise it resolves with a DOM Response object.