Versions in this module Expand all Collapse all v0 v0.1.1 Jun 11, 2026 Changes in this version + type Option func(*options) + func WithHandler(h http.Handler) Option + func WithIdleTimeout(d time.Duration) Option + func WithPort(port int) Option + func WithReadHeaderTimeout(d time.Duration) Option + func WithReadTimeout(d time.Duration) Option + func WithShutdownTimeout(d time.Duration) Option + func WithWriteTimeout(d time.Duration) Option + type Server struct + func New(opts ...Option) (*Server, error) + func (s *Server) Addr() string + func (s *Server) Run(ctx context.Context) error + func (s *Server) Shutdown(ctx context.Context) error + func (s *Server) Start() error