refactor: make App.prototype.handler() sync (#2906)
This commit is contained in:
+2
-2
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user