Help us shape the future of Go! Take the 2026 Go Developer Survey

httpkit

module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0

README

httpkit

Small, composable HTTP building blocks for Go's standard library.

Package Purpose
grace Run one HTTP server with bounded graceful shutdown.
middleware Compose handlers, log requests, recover panics, and enforce browser-origin write checks.
prefix Mount handlers and generate URLs below an optional path prefix.
response Write JSON/XML responses, track final status, and validate local redirects.
server Run related graceful listeners as one unit.

Install

go get github.com/containeroo/httpkit

Packages are independent: import only what a service needs. Logging, error responses, authentication, and application policy remain owned by the consuming service.

grace and prefix began as additive extractions from httpgrace and httpprefix; the original modules remain available while consumers migrate.

Directories

Path Synopsis
Package grace runs HTTP servers with graceful shutdown support.
Package grace runs HTTP servers with graceful shutdown support.
Package middleware provides composable HTTP handler wrappers.
Package middleware provides composable HTTP handler wrappers.
Package prefix provides small helpers for mounting net/http handlers under a configurable URL prefix.
Package prefix provides small helpers for mounting net/http handlers under a configurable URL prefix.
Package response provides small, transport-neutral HTTP response helpers.
Package response provides small, transport-neutral HTTP response helpers.
Package server runs related HTTP listeners with coordinated graceful shutdown.
Package server runs related HTTP listeners with coordinated graceful shutdown.

Jump to

Keyboard shortcuts

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