Http cookie API
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.
当前内容版权归 servicemesher 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 servicemesher .