MCPcopy
hub / github.com/labstack/echo / Cookie

Method Cookie

context.go:442–444  ·  view source on GitHub ↗

Cookie returns the named cookie provided in the request.

(name string)

Source from the content-addressed store, hash-verified

440
441// Cookie returns the named cookie provided in the request.
442func (c *Context) Cookie(name string) (*http.Cookie, error) {
443 return c.request.Cookie(name)
444}
445
446// SetCookie adds a `Set-Cookie` header in HTTP response.
447func (c *Context) SetCookie(cookie *http.Cookie) {

Callers 3

TestContextCookieFunction · 0.95
ToMiddlewareMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestContextCookieFunction · 0.76