Http cookie API

[type.http.v3.Cookie proto]

Cookie defines an API for obtaining or generating HTTP cookie.

  1. {
  2. "name": "...",
  3. "ttl": "{...}",
  4. "path": "..."
  5. }

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.