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

Function cookieAttribute

dsl/http.go:1217–1220  ·  view source on GitHub ↗

cookieAttribute initialize the current attribute metadata with the details of a HTTP cookie attribute for use by the HTTP code generator.

(name, value string)

Source from the content-addressed store, hash-verified

1215// cookieAttribute initialize the current attribute metadata with the details of
1216// a HTTP cookie attribute for use by the HTTP code generator.
1217func cookieAttribute(name, value string) {
1218 c := eval.Current().(*expr.HTTPResponseExpr).Cookies
1219 c.AddMeta("cookie:"+name, value)
1220}

Callers 6

CookieMaxAgeFunction · 0.85
CookieDomainFunction · 0.85
CookiePathFunction · 0.85
CookieSecureFunction · 0.85
CookieHTTPOnlyFunction · 0.85
CookieSameSiteFunction · 0.85

Calls 2

CurrentFunction · 0.92
AddMetaMethod · 0.65

Tested by

no test coverage detected