MCPcopy Create free account
hub / github.com/goadesign/goa / CookieDomain

Function CookieDomain

dsl/http.go:517–524  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

515// })
516// })
517func 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//

Callers 1

cookie_dsls.goFile · 0.85

Calls 3

CurrentFunction · 0.92
IncompatibleDSLFunction · 0.92
cookieAttributeFunction · 0.85

Tested by

no test coverage detected