Documentation ¶ Overview ¶ Package defserver. Index ¶ func New(addr string, handler http.HandlerFunc, opts ...Option) (*http.Server, error) type Option func WithNoDefaultMiddleware() Option func WithNoTimeout() Option func WithTLS(opts ...deftls.Option) Option Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(addr string, handler http.HandlerFunc, opts ...Option) (*http.Server, error) New return http.Server that commonly used. Types ¶ type Option ¶ type Option func(*http.Server) error func WithNoDefaultMiddleware ¶ func WithNoDefaultMiddleware() Option func WithNoTimeout ¶ func WithNoTimeout() Option func WithTLS ¶ func WithTLS(opts ...deftls.Option) Option Source Files ¶ View all Source files defserver.go Click to show internal directories. Click to hide internal directories.