Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
v 1 r t l authored Aug 3, 2023
1 parent 9de543d commit 882c968
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ Deno port of [forwarded](https://github.com/jshttp/forwarded/) library.
## Usage

```ts
import { serve } from 'https://deno.land/[email protected]/http/server.ts'
import { forwarded, parse } from 'https://deno.land/x/forwarded/mod.ts'
import { forwarded } from 'https://deno.land/x/forwarded/mod.ts'

await serve((req) => new Response(JSON.stringify(forwarded(req)), { port: 8080 })
Deno.serve((req) => new Response(JSON.stringify(forwarded(req)))
```
## API
Expand Down

0 comments on commit 882c968

Please sign in to comment.