x/oak/application.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
interface HandleMethod
import { type HandleMethod } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/application.ts?s=HandleMethod";

Call Signatures

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

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.