httpx

A super-fast epoll-backed and parallel HTTP server.

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:24

Installation

nimble install httpx
choosenim install httpx
git clone https://github.com/ringabout/httpx

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
httpx - - - - - - -

Source

Repository https://github.com/ringabout/httpx
Homepage https://github.com/ringabout/httpx
Registry Source nimble_official

README

httpx

This project is based on Dom96's perfect work on httpbeast and adds windows support(based on wepoll namely IOCP).

It is also used by prologue.

Installation

nimble install httpx

Notes

Notes that multi-threads may be slower than single-thread!

Usage

Change server info name

-d:serverInfo:serverName

Enable threads

--threads:on

Hello world

import options, asyncdispatch

import httpx

proc onRequest(req: Request): Future[void] =
  if req.httpMethod == some(HttpGet):
    case req.path.get()
    of "/":
      req.send("Hello World")
    else:
      req.send(Http404)

run(onRequest)

Websocket support

https://github.com/ringabout/websocketx

nimble install https://github.com/ringabout/websocketx