Versions in this module Expand all Collapse all v0 v0.0.1 Jul 8, 2023 Changes in this version + const DEFAULT_ADDRES + const DEFAULT_EXIT_TIMEOUT + const DEFAULT_HEADER_READ_TIMEOUT + const DEFAULT_READ_TIMEOUT + const DEFAULT_WRITE_TIMEOUT + type HttpServerOption func(*Server) + func WithExitTimeOut(t time.Duration) HttpServerOption + func WithPort(port string) HttpServerOption + func WithReadHeaderTimeOout(t time.Duration) HttpServerOption + func WithReadTimeOut(t time.Duration) HttpServerOption + func WithWriteTimeOut(t time.Duration) HttpServerOption + type Server struct + func New(handler http.Handler, opts ...HttpServerOption) *Server + func (s *Server) Exit() error + func (s *Server) Start() error