feat: pass ConnInfo to various handler contexts (#121)
This commit is contained in:
@@ -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);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user