Skip to content

Instantly share code, notes, and snippets.

@brielov
Last active April 3, 2021 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brielov/68e701a65073fd2bf95add2124b23fa9 to your computer and use it in GitHub Desktop.
Save brielov/68e701a65073fd2bf95add2124b23fa9 to your computer and use it in GitHub Desktop.
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