httpserver

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command httpserver runs a tiny net/http service whose /api/* routes are protected by an adaptive concurrency limiter, then hammers it with a burst of concurrent clients. Watch the "limit" column: the controller discovers how many requests the handler can serve at once without its latency blowing past the SLO, and requests beyond that are shed (429) instead of queued.

The server runs on an httptest listener — no fixed port, no external network.

go run ./example/httpserver

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL