Versions in this module Expand all Collapse all v0 v0.42.0 May 14, 2022 Changes in this version + type Option func(*Server) *Server + func WithBindAddr(addr string) Option + func WithBindPort(port int) Option + func WithHandler(h http.Handler) Option + func WithResponse(resp []byte) Option + func WithTlsConfig(tlsConfig *tls.Config) Option + type Server struct + func New(options ...Option) *Server + func (s *Server) BindAddr() string + func (s *Server) BindPort() int + func (s *Server) Close() error + func (s *Server) Run() error