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

Function cookies

packages/platform/browser/src/BrowserHttpClient.ts:242–252  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

240
241 cachedCookies: Cookies.Cookies | undefined
242 get cookies() {
243 if (this.cachedCookies) {
244 return this.cachedCookies
245 }
246 if (this._rawHeaders === undefined) {
247 return Cookies.empty
248 } else if (this._rawHeaders["set-cookie"] === undefined) {
249 return this.cachedCookies = Cookies.empty
250 }
251 return this.cachedCookies = Cookies.fromSetCookie(this._rawHeaders["set-cookie"])
252 }
253
254 get remoteAddress() {
255 return Option.none()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected