basic-http

command
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Command basic-http demonstrates a minimal multi-tenant HTTP server.

It shows:

  • Tenant extraction from the X-Tenant-Id header
  • Per-tenant configuration via ConfigMgr
  • Tenant-aware logging and rate limiting

Run it and try:

curl -H "X-Tenant-Id: acme" http://localhost:8080/config
curl -H "X-Tenant-Id: globex" http://localhost:8080/config
curl -H "X-Tenant-Id: acme" http://localhost:8080/hello

Jump to

Keyboard shortcuts

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