MCPcopy Create free account
hub / github.com/Effect-TS/effect / cookies

Method cookies

packages/platform/node/src/NodeHttpServer.ts:699–704  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

697
698 private cachedCookies: Record.ReadonlyRecord<string, string> | undefined
699 get cookies() {
700 if (this.cachedCookies) {
701 return this.cachedCookies
702 }
703 return this.cachedCookies = Cookies.parseHeader(this.headers.cookie ?? "")
704 }
705
706 get resolvedResponse(): Http.ServerResponse {
707 return typeof this.response === "function" ? this.response() : this.response

Callers

nothing calls this directly

Calls 1

parseHeaderMethod · 0.80

Tested by

no test coverage detected