Skip to main content
Module

x/keywork/mod.ts>Router.KeyworkRouter#get

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Go to Latest
method Router.KeyworkRouter.prototype.get
import { Router } from "https://deno.land/x/keywork@v6.0.1/mod.ts";
const { KeyworkRouter } = Router;

Defines a handler for incoming GET requests.

The HTTP GET method requests a representation of the specified resource. Requests using GET should only be used to request data. The params object in the IsomorphicFetchEvent contains matched URL patterns which can be used to pass routing data from a client.

Type Parameters

optional
ExpectedParams = { }
optional
Data = { }

Parameters

...args: Parameters<RouteMethodDeclaration<BoundAliases, ExpectedParams, Data>>