CookieDomain defines the "domain" attribute of a HTTP response cookie. CookieDomain must appear in a Cookie expression. CookieDomain accepts one argument which is the path value. Example: var _ = Service("account", func() { Method("create", func() { Result(Account) HTTP(f
(d string)
| 515 | // }) |
| 516 | // }) |
| 517 | func CookieDomain(d string) { |
| 518 | _, ok := eval.Current().(*expr.HTTPResponseExpr) |
| 519 | if !ok { |
| 520 | eval.IncompatibleDSL() |
| 521 | return |
| 522 | } |
| 523 | cookieAttribute("domain", d) |
| 524 | } |
| 525 | |
| 526 | // CookiePath defines the "path" attribute of a HTTP response cookie. |
| 527 | // |
no test coverage detected