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

Method cookies

packages/platform/bun/src/BunHttpServer.ts:416–421  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

414
415 private cachedCookies: Record.ReadonlyRecord<string, string> | undefined
416 get cookies() {
417 if (this.cachedCookies) {
418 return this.cachedCookies
419 }
420 return this.cachedCookies = Cookies.parseHeader(this.headers.cookie ?? "")
421 }
422
423 get stream(): Stream.Stream<Uint8Array, Error.HttpServerError> {
424 return this.source.body

Callers

nothing calls this directly

Calls 1

parseHeaderMethod · 0.80

Tested by

no test coverage detected