called after every method (Get() or Post()).
(ctx *context.Context)
| 108 | |
| 109 | // called after every method (Get() or Post()). |
| 110 | func (c *testControllerBeginAndEndRequestFunc) EndRequest(ctx *context.Context) { |
| 111 | ctx.Writef("done") // append "done" to the response |
| 112 | } |
| 113 | |
| 114 | func (c *testControllerBeginAndEndRequestFunc) Get() { |
| 115 | c.Ctx.Writef(c.Username) |