method HTTPServer.prototype.patch
HTTPServer.prototype.patch(
path: string,
handler: RouteHandler
): void

Registers a PATCH route handler.

const server = new HTTPServer();
server.patch('/runs/:id', (_req, res) => res.json({ patched: true }));
await server.close();

Parameters

path: string

Return Type

void

Usage

import { HTTPServer } from "lib/web/index.ts";