Skip to content

deno-libs/forwarded

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

forwarded

GitHub release (latest by date) GitHub Workflow Status Codecov

Deno port of forwarded library.

Usage

import { forwarded } from 'https://deno.land/x/forwarded/mod.ts'

Deno.serve((req) => new Response(JSON.stringify(forwarded(req)))

API

forwarded(req)

Get all addresses in the request, using the X-Forwarded-For header.

parse(header)

Parse the X-Forwarded-For header.