Versions in this module Expand all Collapse all v1 v1.0.1 Oct 31, 2023 v1.0.0 Oct 31, 2023 Changes in this version + type Conn interface + type Middle router.Middle[*http2.Stream[Conn]] + type Server struct + Addr string + CertFile string + IdleTimeout time.Duration + KeyFile string + MaxHeaderBytes int + Name string + OnClose func(stream *http2.Stream[Conn]) + OnError func(stream *http2.Stream[Conn], err error) + OnMessage func(stream *http2.Stream[Conn]) + OnOpen func(stream *http2.Stream[Conn]) + OnSuccess func() + ReadHeaderTimeout time.Duration + ReadTimeout time.Duration + TLSConfig *tls.Config + WriteTimeout time.Duration + func (s *Server[T]) GetRouter() *router.Router[*http2.Stream[Conn], T] + func (s *Server[T]) LocalAddr() net.Addr + func (s *Server[T]) Ready() + func (s *Server[T]) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (s *Server[T]) SetRouter(router *router.Router[*http2.Stream[Conn], T]) *Server[T] + func (s *Server[T]) SetStaticRouter(router *StaticRouter) *Server[T] + func (s *Server[T]) Shutdown() error + func (s *Server[T]) Start() + func (s *Server[T]) Use(middle ...func(next Middle) Middle) + type Static struct + type StaticDirMiddle struct + func (s *StaticDirMiddle) Handler(...) + type StaticFileMiddle struct + func (s *StaticFileMiddle) Handler(...) + type StaticRouter struct + func (r *StaticRouter) IsAllowMethod(method string) bool + func (r *StaticRouter) SetAllowMethod(methods ...string) + func (r *StaticRouter) SetDefaultIndex(index ...string) + func (r *StaticRouter) SetOpenDir(dirIndex ...int) + func (r *StaticRouter) SetStaticDirMiddle(t ...string) *StaticDirMiddle + func (r *StaticRouter) SetStaticDownload(flag bool) + func (r *StaticRouter) SetStaticFileMiddle(t ...string) *StaticFileMiddle + func (r *StaticRouter) SetStaticGlobalDirMiddle(...) + func (r *StaticRouter) SetStaticGlobalFileMiddle(...) + func (r *StaticRouter) SetStaticPath(prefixPath string, fixPath string, fileSystem http.FileSystem) int