servehttp

package
v0.9.21 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReadHeaderTimeout          = 10 * time.Second
	IdleTimeout                = 2 * time.Minute
	StreamWriteTimeout         = 30 * time.Second
	DurableResponseLookupLimit = 5 * time.Second
)

Variables

This section is empty.

Functions

func NewStreamingResponseWriter

func NewStreamingResponseWriter(w http.ResponseWriter, timeout time.Duration) http.ResponseWriter

NewStreamingResponseWriter wraps w with per-write deadlines when timeout is positive.

func NormalizeBasePath

func NormalizeBasePath(raw string) (string, error)

NormalizeBasePath validates and normalizes a base-path value. It ensures a leading slash, strips trailing slashes, and rejects empty or root-only paths (use the default "/ui" instead of "/").

Types

This section is empty.

Jump to

Keyboard shortcuts

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