Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandleFunc ¶
type HandleFunc func(ctx Context)
type HttpServer ¶
type HttpServer struct {
// contains filtered or unexported fields
}
func NewHttpServer ¶
func NewHttpServer() *HttpServer
func (*HttpServer) Get ¶
func (h *HttpServer) Get(path string, handleFunc HandleFunc)
/=================================================================================================
func (*HttpServer) Post ¶
func (h *HttpServer) Post(path string, handleFunc HandleFunc)
func (*HttpServer) Serve ¶
func (h *HttpServer) Serve(ctx *Context)
func (*HttpServer) ServeHTTP ¶
func (h *HttpServer) ServeHTTP(writer http.ResponseWriter, request *http.Request)
func (*HttpServer) Start ¶
func (h *HttpServer) Start(addr string) error
Click to show internal directories.
Click to hide internal directories.