# Functions
Bind binding an obj to a handler's context data.
GetForm returns the validate form information.
NewRouter creates a new route.
RouteMock uses the registered mock point to mock the route execution, example:
defer web.RouteMockReset() web.RouteMock(web.MockAfterMiddlewares, func(ctx *context.Context) { ctx.WriteResponse(...) }
Then the mock function will be executed as a middleware at the mock point.
RouteMockReset resets all mock points (no mock anymore).
RouterMockPoint registers a mock point as a middleware for testing, example:
r.Use(web.RouterMockPoint("my-mock-point-1")) r.Get("/foo", middleware2, web.RouterMockPoint("my-mock-point-2"), middleware2, handler)
Then use web.RouteMock to mock the route execution.
SetForm set the form object.
# Constants
MockAfterMiddlewares is a general mock point, it's between middlewares and the handler.