Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /usr/share/nodejs/jsdom/lib/jsdom/living/fetch/ drwxr-xr-x |
Viewing file: Select action/file-type: "use strict"; /** * Provides some utility functions for somewhat efficiently modifying a * collection of headers. * * Note that this class only operates on ByteStrings (which is also why we use * toLowerCase internally). */ class HeaderList { constructor() { this.headers = new Map(); } append(name, value) { const existing = this.headers.get(name.toLowerCase()); if (existing) { name = existing[0].name; existing.push({ name, value }); } else { this.headers.set(name.toLowerCase(), [{ name, value }]); } } contains(name) { return this.headers.has(name.toLowerCase()); } get(name) { name = name.toLowerCase(); const values = this.headers.get(name); if (!values) { return null; } return values.map(h => h.value).join(", "); } delete(name) { this.headers.delete(name.toLowerCase()); } set(name, value) { const lowerName = name.toLowerCase(); this.headers.delete(lowerName); this.headers.set(lowerName, [{ name, value }]); } sortAndCombine() { const names = [...this.headers.keys()].sort(); return names.map(n => [n, this.get(n)]); } } module.exports = HeaderList; |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0033 ]-- |