mirror of
https://github.com/kataras/iris.git
synced 2026-01-09 04:51:56 +00:00
Update the _examples/mvc/login example - add a Path property at mvc.Response and add a context.Proceed helper function
Former-commit-id: b898901fe4a324e888a6e09c93530cf7a551cf2a
This commit is contained in:
@@ -57,6 +57,11 @@ var (
|
||||
// which the main request `Controller` will implement automatically.
|
||||
// End-User doesn't need to have any knowledge of this if she/he doesn't want to implement
|
||||
// a new Controller type.
|
||||
// Controller looks the whole flow as one handler, so `ctx.Next`
|
||||
// inside `BeginRequest` is not be respected.
|
||||
// Alternative way to check if a middleware was procceed succesfully
|
||||
// and called its `ctx.Next` is the `ctx.Proceed(handler) bool`.
|
||||
// You have to navigate to the `context/context#Proceed` function's documentation.
|
||||
type BaseController interface {
|
||||
SetName(name string)
|
||||
BeginRequest(ctx context.Context)
|
||||
|
||||
Reference in New Issue
Block a user