0.1.0
Deno port of `proxy-addr` library
Repository
Current version released
3 years ago
proxy_addr
Deno port of proxy-addr library.
Usage
import { Server } from 'https://deno.land/std@0.107.0/http/server.ts'
import { proxyaddr, RequestWithConnection } from 'https://deno.land/x/proxy_addr/mod.ts'
const s = new Server({
handler: (req, conn) => {
const request = req as RequestWithConnection
request.conn = conn
const res = proxyaddr(request, ['localhost'])
return new Response(res)
}
})