/httpbeast

Primary LanguageNimMIT LicenseMIT

httpbeast

A highly performant, multi-threaded HTTP 1.1 server written in Nim.

This is a project to get the fastest possible HTTP server written in pure Nim. It is currently in the top 10 in the TechEmpower benchmarks.

Note: This HTTP server does not support Windows.

Features

Current features include:

  • Built on the Nim selectors module which makes efficient use of epoll on Linux and kqueue on macOS.
  • Automatic parallelization, just make sure to compile with --threads:on.
  • Support for HTTP pipelining.
  • On-demand parser so that only the requested data is parsed.
  • Integration with Nim's asyncdispatch allowing async/await to be used in the request callback whenever necessary.