HTTP cookie API (proto)
type.http.v3.Cookie
Cookie defines an API for obtaining or generating HTTP cookie.
{
"name": ...,
"ttl": {...},
"path": ...,
"attributes": []
}
- name
(string, REQUIRED) The name that will be used to obtain cookie value from downstream HTTP request or generate new cookie for downstream.
- ttl
(Duration) Duration of cookie. This will be used to set the expiry time of a new cookie when it is generated. Set this to 0s to use a session cookie and disable cookie expiration.
- path
(string) Path of cookie. This will be used to set the path of a new cookie when it is generated. If no path is specified here, no path will be set for the cookie.
- attributes
(repeated type.http.v3.CookieAttribute) Additional attributes for the cookie. They will be used when generating a new cookie.
type.http.v3.CookieAttribute
[type.http.v3.CookieAttribute proto]
CookieAttribute defines an API for adding additional attributes for a HTTP cookie.
{
"name": ...,
"value": ...
}
- name
(string, REQUIRED) The name of the cookie attribute.
- value
(string) The optional value of the cookie attribute.