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

Method cookies

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

Source from the content-addressed store, hash-verified

319
320 private cachedCookies: Record.ReadonlyRecord<string, string> | undefined
321 get cookies() {
322 if (this.cachedCookies) {
323 return this.cachedCookies
324 }
325 return this.cachedCookies = Cookies.parseHeader(this.headers.cookie ?? "")
326 }
327
328 get resolvedResponse(): Http.ServerResponse {
329 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