Documentation
¶
Overview ¶
Package httpserver runs a standard HTTP handler with explicit startup and graceful shutdown. Routing and application middleware belong to the caller.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is single-use. It owns its listener, but not the supplied handler. Hijacked connections (including WebSockets) are closed when shutdown begins. Protocol-level close frames and application session draining belong to handlers. Keep session work inside the handler so Run can join it before closing dependencies.
Click to show internal directories.
Click to hide internal directories.