Skip to content

Instantly share code, notes, and snippets.

Last active Apr 3, 2021
What would you like to do?
import { createServer, IncomingMessage, ServerResponse } from 'http'
// The core http server
const httpServer = createServer(requestHandler)
// Our request handler and route dispatcher
async function requestHandler(req: IncomingMessage, res: ServerResponse) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment