Http cookie API (proto)
type.http.v3.Cookie
Cookie defines an API for obtaining or generating HTTP cookie.
{
"name": ...,
"ttl": {...},
"path": ...
}
- 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 0 to use a session cookie.
- 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.