Aller au contenu principal
h

httprouter

High performance HTTP router for Go

A lightweight high performance HTTP request router for Go. Zero garbage allocation routing with radix tree structure for maximum performance.

16K
GitHub Stars
none
TypeScript
easy
Learning Curve
4.3
DX Score

Tarification

Model
free
Offre Gratuite
BSD-3-Clause licensed, fully open source

Fonctionnalités

  • Zero allocations
  • Radix tree routing
  • Named parameters
  • Catch-all parameters
  • Trailing slash handling
  • Path auto-correction
  • Panic recovery
  • OPTIONS handling
  • 405 responses

Avantages

  • + Extremely fast
  • + Zero garbage
  • + Lightweight
  • + Simple API
  • + Battle tested

Inconvénients

  • - Just a router
  • - No middleware built-in
  • - Less flexible than mux
  • - Minimal features

Idéal Pour

startup indie hacker
backend router performance minimal zero-alloc