Versions in this module Expand all Collapse all v0 v0.2.2 Nov 18, 2026 Changes in this version type Option + func WithOnShutdown(f func()) Option v0.2.1 Nov 14, 2026 v0.2.0 Nov 12, 2026 v0.1.0 Sep 23, 2026 Changes in this version + func Handler(mux *http.ServeMux) http.Handler + func NewMux() *http.ServeMux + func NewSPA(cfg SPAConfig) (http.Handler, error) + func RegisterHealth(mux *http.ServeMux, reg *health.Registry) + type Config struct + Addr string + IdleTimeout time.Duration + ReadHeaderTimeout time.Duration + ReadTimeout time.Duration + WriteTimeout time.Duration + type Option func(*Server) + func WithLogger(l *slog.Logger) Option + func WithName(name string) Option + type SPAConfig struct + FS fs.FS + Head func(r *http.Request) string + Immutable []string + ServerPrefixes []string + type Server struct + func New(cfg Config, handler http.Handler, opts ...Option) *Server + func (s *Server) Addr() string + func (s *Server) Name() string + func (s *Server) Run(context.Context) error + func (s *Server) Start(context.Context) error + func (s *Server) Stop(ctx context.Context) error