httpjet ·docs
10-track sequence 2-5 min synths
GitHub

Docs/Overview

Raw .md

httpjet · documentation · release overview

httpjet

A from-scratch Rust web server and drop-in LiteSpeed replacement: it reads the same conf/httpd_config.xml tree, speaks native LSAPI to lsphp, evaluates the same .htaccess files, and adds native HTTP/2 and HTTP/3, reverse-proxy and FastCGI gateways, and an opt-in LSCache-protocol page cache — all on one io_uring transport.

One pipeline per request, any protocol.
GitHub · faratech/httpjet ↗ Drop-in LiteSpeed XML config HTTP/1.1 · native HTTP/2 · HTTP/3 Native LSAPI → lsphp · FastCGI Apache .htaccess · Basic auth Opt-in origin page cache

Choose your path

What httpjet is

httpjet reads LiteSpeed Web Server (LSWS 6.3.5) and OpenLiteSpeed configuration trees. Check the supported directives and limits, validate your configuration, and test it before migrating. Native additions are opt-in.

Compatible surface

  • LiteSpeed XML and mime.properties
  • Native LSAPI to lsphp
  • mod_rewrite, access control, Basic auth, Header, ErrorDocument
  • LSCache protocol (X-LiteSpeed-Cache-Control / -Tag / -Vary / -Purge)
  • LiteSpeed fileETag=28 ETags, .html→PHP dispatch order

httpjet-native (opt-in)

i
Where it runs

httpjet serves WindowsForum.com (x86_64) and MoonTimeNow.com + ThisDayInHistory.ai (ARM64) behind Cloudflare, on pure io_uring with the file tier live. It replaced LiteSpeed for all three. The project is GPL-3.0-only; running versions and deployment settings can differ by host. Run check --strict and test on alternate ports before cutover. See Capabilities & limits.

How the pieces fit

Select a node to open its page.

Wide diagrams scroll horizontally.continue or noneregisteredrespond or errorallowed or disabledhitmiss / bypass

resolve
SNI / Host → vhost

trust & identity
mTLS gate · client IP · ACL · geo · throttle

extension pre-handlers
(compile-time, optional)

context body limit

response transforms
promote small files · expires · sub_filter · compress · deny-CDN-cache · Alt-Svc

WAF sidecar
(if configured)

.htaccess chain
SetEnvIf · memoized pre-rewrite access

rewrite
inline rules, then .htaccess

access enforcement
Basic auth · PATH_INFO deny

page-cache lookup
(--page-cache · public / private / shared / capsule)

dispatch

WebSocket

proxy

LSAPI / FastCGI
suffix routing

static

finalize
Header ops · ErrorDocument

cache store
(spawn_blocking variant/dict fills · --cf-send-zstd)

access log · metrics · spans

The request pipeline. pipeline::handle() resolves vhost and identity. dispatch() mirrors OpenLiteSpeed ordering. finalize_response finishes each terminal.
diagram source (mermaid)
flowchart TB
  classDef on fill:#13203a,stroke:#818cf8,color:#fff
  classDef term fill:#0e1424,stroke:#22d3ee,color:#e8ecf6
  classDef gate fill:#1a1f33,stroke:#fbbf73,color:#e8ecf6
  A["resolve<br/>SNI / Host → vhost"] --> B["trust & identity<br/>mTLS gate · client IP · ACL · geo · throttle"]
  B --> X["extension pre-handlers<br/>(compile-time, optional)"]
  X -- "continue or none registered" --> Y["context body limit"]
  X -- "respond or error" --> K
  Y --> W("WAF sidecar<br/>(if configured)"):::gate
  W -- "allowed or disabled" --> C[".htaccess chain<br/>SetEnvIf · memoized pre-rewrite access"]
  C --> D["rewrite<br/>inline rules, then .htaccess"]
  D --> E["access enforcement<br/>Basic auth · PATH_INFO deny"]
  E --> F("page-cache lookup<br/>(--page-cache · public / private / shared / capsule)"):::on
  F -- hit --> K
  F -- miss / bypass --> G("dispatch")
  G --> G1[WebSocket]:::term
  G --> G2["proxy <context>"]:::term
  G --> G3["LSAPI / FastCGI<br/>suffix routing"]:::term
  G --> G4[static]:::term
  G1 & G2 & G3 & G4 --> H["finalize<br/>Header ops · ErrorDocument"]
  H --> I["cache store<br/>(spawn_blocking variant/dict fills · --cf-send-zstd)"]:::on
  I --> K["response transforms<br/>promote small files · expires · sub_filter · compress · deny-CDN-cache · Alt-Svc"]
  K --> L["access log · metrics · spans"]
  click B "security.html"
  click W "extensions.html#waf"
  click X "extensions.html"
  click C "rewrite.html"
  click D "rewrite.html"
  click E "rewrite.html#basic-auth"
  click F "page-cache.html#lookup"
  click I "page-cache.html#store"
  click G2 "gateways.html"
  click G3 "lsapi.html"
  click K "compression.html"
  click L "observability.html"

Read next

Start, operate, learn internals, check reference.

By the numbers

See Performance for method and receipts.

1,465.8k rps
v0.2.8 H2 empty body, dedicated lab, 10-round matched (+6.6% vs 0.2.7); H3 empty 145.0k (+15.9%)
44.8k rps
PHP/LSAPI h1, PGO loopback (2026-06): LiteSpeed ~38.5k
40×
cache hit vs PHP render: 19,215 vs 480 rps; p50 2 ms vs 34 ms
146/146
h2spec, native HTTP/2, TLS, three runs
0.2%
httpjet phases, June 2026 production (~138 µs/req); LSAPI elapsed time 86.5–98.8% of wall time
3,300+
test functions, 20 crates; suite green at v0.2.8 (3,302 tests)

Project status

AspectState
VersionCheck the latest public release
Release historyVersion 0.2.8 adds a synchronous borrowed HTTP/3 memo fast path, cached QPACK field_section_size, H2 Frame-1 single-shot batching, cookied guest response-memo with strict logged-in member isolation, O(1) LSAPI wire-header lookup, 64 KiB access-log batching, and 29 bug fixes. Explore dated measurements and their methods in Performance. For release changes and packages, see GitHub Releases.
ConfigurationLiteSpeed XML stays authoritative. Native directives stay opt-in. check --strict gates deploys.
TransportPure io_uring (monoio), H1/H2/H3 only. No epoll fallback or Windows/macOS port.
PHPNative LSAPI; you supply lsphp. Production: persistent external pool, zero-downtime generation reloads.
Page cacheOff by default; opt-in LSCache, private tier, cookie vary, tmpfs file tier, per-vhost dictionaries, generation namespaces. Live in production.
Optional featuresacme, ocsp, otel, ktls, profiling build features. Each still needs runtime opt-in.
Security postureContinuous security and RFC audits through v0.2.8 (29 issues fixed in 0.2.8, 36 in 0.2.4, 28 in 0.2.0, 22 in 0.1.10; see audit posture). Defaults stay fail-closed.
ReleaseLinux installer plus signed DEB, RPM and static archives via GitHub Releases. Full distribution matrix not completed for this release.

httpjet · release behavior reviewed against v0.2.8; measurements and historical results are dated on their pages.
Source: github.com/faratech/httpjet · Home: httpjet.net · Found an error? Open an issue on the repository.