Versions in this module Expand all Collapse all v2 v2.1.0 Dec 17, 2023 Changes in this version + type Opt func(*Server) v2.0.0 Dec 15, 2023 Changes in this version + func Run(ctx context.Context, port uint16, handler http.Handler, opts ...opt) error + func WithAddress(host string, port uint16) opt + func WithHandler(handler http.Handler) opt + func WithIdleTimeout(d time.Duration) opt + func WithMaxHeaderBytes(i int) opt + func WithReadHeaderTimeout(d time.Duration) opt + func WithReadTimeout(d time.Duration) opt + func WithShutdownTimeout(d time.Duration) opt + func WithTLSConfig(conf *tls.Config) opt + func WithWriteTimeout(d time.Duration) opt + type Server struct + func New(opts ...opt) *Server + func (s *Server) Run(ctx context.Context) error Other modules containing this package github.com/ArenAzibekyan/httpserver