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

Method cookies

packages/effect/src/http/HttpServerRequest.ts:589–594  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

587
588 private cachedCookies: ReadonlyRecord<string, string> | undefined
589 get cookies() {
590 if (this.cachedCookies) {
591 return this.cachedCookies
592 }
593 return this.cachedCookies = Cookies.parseHeader(this.headers.cookie ?? "")
594 }
595
596 get stream(): Stream.Stream<Uint8Array, HttpServerError> {
597 return streamFromReadable(this, this.source.body)

Callers

nothing calls this directly

Calls 1

parseHeaderMethod · 0.80

Tested by

no test coverage detected