@borderless/fetch-final-handler
v1.0.1
Published
Final HTTP 404 responder for fetch, e.g. Cloudflare Workers.
Downloads
7
Maintainers
Readme
Fetch Final Handler
Final HTTP 404 responder for fetch, e.g. Cloudflare Workers.
Installation
npm install @borderless/fetch-final-handler --save
Usage
import { compose } from "throwback";
import { finalHandler } from "@borderless/fetch-final-handler";
const app = compose([get(), post()]);
const req = new Request("/");
app(req, finalHandler());
TypeScript
This project is written using TypeScript and publishes the definitions directly to NPM.
License
MIT