Sha256: da254e15248352b5bc4b451bb4db9f11120db734b2340d2d7fe3f8d37b3d6661
Contents?: true
Size: 797 Bytes
Versions: 26
Compression:
Stored size: 797 Bytes
Contents
{"version":3,"sources":["../../../../src/core/utils/request/storeResponseCookies.ts"],"sourcesContent":["import { cookieStore } from '../cookieStore'\nimport { kSetCookie } from '../HttpResponse/decorators'\n\nexport function storeResponseCookies(\n request: Request,\n response: Response,\n): void {\n // Grab the raw \"Set-Cookie\" response header provided\n // in the HeadersInit for this mocked response.\n const responseCookies = Reflect.get(response, kSetCookie) as\n | string\n | undefined\n\n if (responseCookies) {\n cookieStore.setCookie(responseCookies, request.url)\n }\n}\n"],"mappings":"AAAA,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAEpB,SAAS,qBACd,SACA,UACM;AAGN,QAAM,kBAAkB,QAAQ,IAAI,UAAU,UAAU;AAIxD,MAAI,iBAAiB;AACnB,gBAAY,UAAU,iBAAiB,QAAQ,GAAG;AAAA,EACpD;AACF;","names":[]}
Version data entries
26 entries across 26 versions & 1 rubygems