1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-11-13 00:34:17 +02:00
parent 7b6a8f1e26
commit c81b97188a
7 changed files with 101 additions and 16 deletions

View File

@@ -14,6 +14,14 @@ import (
"github.com/kataras/iris/v12/view"
)
// SameSite attributes.
const (
SameSiteDefaultMode = http.SameSiteDefaultMode
SameSiteLaxMode = http.SameSiteLaxMode
SameSiteStrictMode = http.SameSiteStrictMode
SameSiteNoneMode = http.SameSiteNoneMode
)
type (
// Context is the middle-man server's "object" for the clients.
//
@@ -160,6 +168,9 @@ type (
//
// An alias for the `context.CookieOption`.
CookieOption = context.CookieOption
// Cookie is a type alias for the standard net/http Cookie struct type.
// See `Context.SetCookie`.
Cookie = http.Cookie
// N is a struct which can be passed on the `Context.Negotiate` method.
// It contains fields which should be filled based on the `Context.Negotiation()`
// server side values. If no matched mime then its "Other" field will be sent,