mirror of
https://github.com/kataras/iris.git
synced 2025-12-28 15:27:03 +00:00
Some minor but helpful additions, like CookieOption. Relative: https://github.com/kataras/iris/issues/1018. Simple cookies example added too. Cookie encoding (side by side with the already session's cookie id encoding) and version upgrade will come tomorrow with a new HISTORY.md entry as well, stay tuned!
Former-commit-id: d14181fac998d32d77690b1b3e42b6c7c72f1ace
This commit is contained in:
10
go19.go
10
go19.go
@@ -71,4 +71,14 @@ type (
|
||||
//
|
||||
// See `ExecutionRules` and `core/router/Party#SetExecutionRules` for more.
|
||||
ExecutionOptions = router.ExecutionOptions
|
||||
|
||||
// CookieOption is the type of function that is accepted on
|
||||
// context's methods like `SetCookieKV`, `RemoveCookie` and `SetCookie`
|
||||
// as their (last) variadic input argument to amend the end cookie's form.
|
||||
//
|
||||
// Any custom or built'n `CookieOption` is valid,
|
||||
// see `CookiePath`, `CookieCleanPath`, `CookieExpires` and `CookieHTTPOnly` for more.
|
||||
//
|
||||
// An alias for the `context/Context#CookieOption`.
|
||||
CookieOption = context.CookieOption
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user