1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

README: add 'run in the browser' button

after the quick start details, so it is visible always


Former-commit-id: 0c13135a01c2b883aa4a9629a507aaf622d22ade
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-06-24 00:13:31 +03:00
parent 9922265454
commit 3fa022738b
15 changed files with 147 additions and 52 deletions

View File

@@ -24,6 +24,17 @@ func main() {
DisableSubdomainPersistence: false,
// Allow getting the session value stored by the request from the same request.
AllowReclaim: true,
/*
SessionIDGenerator: func(ctx iris.Context) string {
id:= ctx.GetHeader("X-Session-Id")
if id == "" {
id = // [generate ID here and set the header]
ctx.Header("X-Session-Id", id)
}
return id
},
*/
})
app := example.NewApp(sess)