Versions in this module Expand all Collapse all v1 v1.0.0 Mar 8, 2022 Changes in this version + type After func(stream *http.Stream) error + type Before func(stream *http.Stream) error + type Middle func(*http2.Stream) + type RouteHandler struct + func (rh *RouteHandler) Delete(path ...string) *route + func (rh *RouteHandler) Get(path ...string) *route + func (rh *RouteHandler) Option(path ...string) *route + func (rh *RouteHandler) Patch(path ...string) *route + func (rh *RouteHandler) Post(path ...string) *route + func (rh *RouteHandler) Put(path ...string) *route + func (rh *RouteHandler) Remove(path ...string) + func (rh *RouteHandler) Route(method string, path ...string) *route + type Router struct + StrictMode bool + func (r *Router) GetAllRouters() []*node + func (r *Router) Group(path ...string) *group + func (r *Router) Remove(path ...string) + func (r *Router) Route(method string, path ...string) *route + func (r *Router) SetDefaultIndex(index ...string) + func (r *Router) SetGlobalAfter(after ...After) + func (r *Router) SetGlobalBefore(before ...Before) + func (r *Router) SetOpenDir(dirIndex ...int) + func (r *Router) SetStaticDirMiddle(t ...string) *StaticDirMiddle + func (r *Router) SetStaticDownload(flag bool) + func (r *Router) SetStaticFileMiddle(t ...string) *StaticFileMiddle + func (r *Router) SetStaticGlobalDirMiddle(...) + func (r *Router) SetStaticGlobalFileMiddle(...) + func (r *Router) SetStaticPath(prefixPath string, fixPath string, fileSystem http2.FileSystem) int + type Server struct + Addr string + CertFile string + KeyFile string + Name string + OnClose func(stream *http2.Stream) + OnError func(stream *http2.Stream, err error) + OnMessage func(stream *http2.Stream) + OnOpen func(stream *http2.Stream) + OnSuccess func() + ReadTimeout time.Duration + WriteTimeout time.Duration + func (s *Server) GetRouter() *Router + func (s *Server) LocalAddr() net.Addr + func (s *Server) Ready() + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (s *Server) SetRouter(router *Router) *Server + func (s *Server) Shutdown() error + func (s *Server) Start() + func (s *Server) Use(middle ...func(next Middle) Middle) + type Static struct + type StaticDirMiddle struct + func (s *StaticDirMiddle) Handler(...) + type StaticFileMiddle struct + func (s *StaticFileMiddle) Handler(...) Other modules containing this package github.com/lemoyxk/kitty/v2