feat: pass ConnInfo to various handler contexts (#121)

This commit is contained in:
Leo Kettmeir
2022-03-09 19:16:08 +01:00
committed by GitHub
parent 8d689938cb
commit 67b3eb470e
7 changed files with 92 additions and 36 deletions
+7
View File
@@ -0,0 +1,7 @@
import { Handlers } from "../../../server.ts";
export const handler: Handlers = {
GET(_req, ctx) {
return new Response((ctx.remoteAddr as Deno.NetAddr).hostname);
},
};