Versions in this module Expand all Collapse all v0 v0.1.0 Jan 22, 2025 Changes in this version + func MaybeCloseConnection(w http.ResponseWriter, r *http.Request) + func NewClient(opts ClientOpts) *http.Client + type ClientOpts struct + Close bool + DisableHTTP2 bool + DisableKeepAlives bool + IdleConnTimeout time.Duration + InsecureSkipVerify bool + MaxConnsPerHost int + MaxIdleConns int + MaxIdleConnsPerHost int + ResponseHeaderTimeout time.Duration + TLSHandshakeTimeout time.Duration + Timeout time.Duration + func (c ClientOpts) WithDefaults() ClientOpts + type GRPCHandler struct + Handler http.Handler + Path string + Port int + type HttpHandler struct + Handler http.HandlerFunc + Path string + type HttpServer struct + func NewServer(opts *ServerOpts) *HttpServer + func (s *HttpServer) Close() error + func (s *HttpServer) Open(ctx context.Context) error + func (s *HttpServer) RegisterHandler(path string, handler http.Handler) + func (s *HttpServer) RegisterHandlerFunc(path string, handlerFunc http.HandlerFunc) + func (s *HttpServer) String() string + type ServerOpts struct + IdleTimeout time.Duration + ListenAddr string + Listener net.Listener + MaxConns int + MaxHeaderBytes int + ReadTimeout time.Duration + WriteTimeout time.Duration