MCPcopy Index your code
hub / github.com/labstack/echo / SetCookie

Method SetCookie

context.go:447–449  ·  view source on GitHub ↗

SetCookie adds a `Set-Cookie` header in HTTP response.

(cookie *http.Cookie)

Source from the content-addressed store, hash-verified

445
446// SetCookie adds a `Set-Cookie` header in HTTP response.
447func (c *Context) SetCookie(cookie *http.Cookie) {
448 http.SetCookie(c.Response(), cookie)
449}
450
451// Cookies returns the HTTP cookies sent with the request.
452func (c *Context) Cookies() []*http.Cookie {

Callers 2

TestContextCookieFunction · 0.95
ToMiddlewareMethod · 0.80

Calls 1

ResponseMethod · 0.95

Tested by 1

TestContextCookieFunction · 0.76