Documentation ¶
Index ¶
- type Context
- type ErrorHandler
- type Handler
- type Server
- func (s *Server) Delete(pattern string, handlers ...Handler)
- func (s *Server) Get(pattern string, handlers ...Handler)
- func (s *Server) Head(pattern string, handlers ...Handler)
- func (s *Server) Post(pattern string, handlers ...Handler)
- func (s *Server) Put(pattern string, handlers ...Handler)
- func (s *Server) ServeHTTP(rw http.ResponseWriter, req *http.Request)
- func (s *Server) SetErrorHandler(handler ErrorHandler)
- func (s *Server) SetMethodNotAllowedHandler(handler http.HandlerFunc)
- func (s *Server) SetNotFoundHandler(handler http.HandlerFunc)
- func (s *Server) Use(handler ...Handler)
- func (s *Server) WebSocket(pattern string, handlers ...Handler)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Request *http.Request Response http.ResponseWriter WebSocket webSocket // contains filtered or unexported fields }
func (*Context) RequestParam ¶
type ErrorHandler ¶
type ErrorHandler func(http.ResponseWriter, *http.Request, error)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) SetErrorHandler ¶
func (s *Server) SetErrorHandler(handler ErrorHandler)
func (*Server) SetMethodNotAllowedHandler ¶
func (s *Server) SetMethodNotAllowedHandler(handler http.HandlerFunc)
func (*Server) SetNotFoundHandler ¶
func (s *Server) SetNotFoundHandler(handler http.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.