Documentation
¶
Index ¶
- type Server
- func (s *Server) Execute(handler app.HandlerFunc) (int, *jsonq.JsonQuery)
- func (s *Server) ExecutePost(handler app.HandlerFunc, body string) (int, *jsonq.JsonQuery)
- func (s *Server) ExecuteRaw(handler app.HandlerFunc) (int, *http.Response)
- func (s *Server) NewContext(req *http.Request, w http.ResponseWriter) app.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
Server is a HTTP server wrapper for testing purpose
func (*Server) ExecutePost ¶
ExecutePost executes given handler with posted JSON
func (*Server) ExecuteRaw ¶
ExecuteRaw executes given handler and return raw response
func (*Server) NewContext ¶
NewContext creates a new HTTP context
Click to show internal directories.
Click to hide internal directories.