mirror of
https://github.com/foomo/keel.git
synced 2026-10-06 15:16:59 +00:00
13 lines
417 B
Go
13 lines
417 B
Go
// Package httputils provides helpers for HTTP handlers: writing error
|
|
// responses with logging and telemetry, inspecting request host and client
|
|
// address, and hashing basic auth passwords.
|
|
//
|
|
// Each status-specific helper such as [NotFoundServerError] or
|
|
// [InternalServerError] delegates to [ServerError]:
|
|
//
|
|
// if err != nil {
|
|
// httputils.InternalServerError(l, w, r, err)
|
|
// return
|
|
// }
|
|
package httputils
|