Versions in this module Expand all Collapse all v0 v0.1.0 Nov 3, 2026 Changes in this version + var ErrClosed = errors.New("httpserver: closed") + var ErrStarted = errors.New("httpserver: already started") + type Config struct + Addr string + IdleTimeout time.Duration + MaxHeaderBytes int + ReadHeaderTimeout time.Duration + ReadTimeout time.Duration + WriteTimeout time.Duration + type Server struct + func New(cfg Config, handler http.Handler) (*Server, error) + func (s *Server) Cancel() + func (s *Server) Run() error + func (s *Server) Stop() error + func (s *Server) Wait(ctx context.Context) error