Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

RequestHandler

import type { RequestHandler } from "https://crux.land/api/get/2KNRVU.ts";

A deno deploy compatible request handler which can be either sync or async and gets passed the Request, it then eventually returns a Response

type RequestHandler = (req: Request) => Response | Promise<Response>;

§Type

§
(req: Request) => Response | Promise<Response>
[src]