refactor: make App.prototype.handler() sync (#2906)

This commit is contained in:
Tim Reichen
2025-05-12 10:12:50 +02:00
committed by GitHub
parent 9605cd81b5
commit 1cfb4bc876
13 changed files with 49 additions and 48 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ import { STATUS_TEXT } from "@std/http/status";
* throw new HttpError(404, "Nothing here");
* });
*
* const handler = await app.handler();
* const handler = app.handler();
*
* try {
* await handler(new Request("http://localhost/not-found"))
@@ -43,7 +43,7 @@ export class HttpError extends Error {
* throw new HttpError(404, "Nothing here");
* });
*
* const handler = await app.handler();
* const handler = app.handler();
*
* try {
* await handler(new Request("http://localhost/not-found"))