feat: move to Deno.serve (#1427)

Co-authored-by: Marvin Hagemeister <marvin@deno.com>
This commit is contained in:
Lino Le Van
2023-07-12 14:37:53 +02:00
committed by GitHub
co-authored by Marvin Hagemeister
parent 46ae49d654
commit e2a1bf8643
24 changed files with 67 additions and 151 deletions
+6 -2
View File
@@ -120,11 +120,15 @@ the value of `acme` in your middleware.
To set the stage for this section, `MiddlewareHandlerContext` looks like this:
```ts
export interface MiddlewareHandlerContext<State = Record<string, unknown>>
extends ConnInfo {
export interface MiddlewareHandlerContext<State = Record<string, unknown>> {
next: () => Promise<Response>;
state: State;
destination: router.DestinationKind;
remoteAddr: {
transport: "tcp" | "udp";
hostname: string;
port: number;
};
}
```