Skip to main content
Module

x/bansa/test.ts

Web Server for Deno Using Proxy
Go to Latest
File
//deno run --allow-net test.tsimport { Bansa, listen } from './mod.ts'
const client = Bansa;
client['/'] = (req: Request) => { return new Response(`User-Agent: ${req.headers.get('User-Agent')}`);}
listen({ port: 8080 });