Lines Matching refs:val

651     function parseKeepAliveTimeout(val) {
652 const m = val.toString().match(KEEPALIVE_TIMEOUT_EXPR);
665 let val = obj[key];
666 if (!val) {
673 if (!Array.isArray(val)) {
674 val = [val];
675 obj[key] = val;
677 val.push(headers[i + 1].toString("utf8"));
692 const val = headers[n + 1].toString("utf8");
694 ret.push(key, val);
697 contentDispositionIdx = ret.push(key, val) - 1;
699 ret.push(key, val);
840 function toUSVString(val) {
842 return `${val}`.toWellFormed();
844 return nodeUtil.toUSVString(val);
846 return `${val}`;
4343 this._state = "val";
4465 } else if (this._state === "val") {
6311 for (const [key, val] of headers) {
6312 headersList.append(key, val);
7526 function processHeaderValue(key, val, skipAppend) {
7527 if (val && typeof val === "object") {
7530 val = val != null ? `${val}` : "";
7531 if (headerCharRegex.exec(val) !== null) {
7534 return skipAppend ? val : `${key}: ${val}\r
7538 function processHeader(request, key, val, skipAppend = false) {
7539 if (val && (typeof val === "object" && !Array.isArray(val))) {
7541 } else if (val === void 0) {
7545 if (headerCharRegex.exec(val) !== null) {
7548 request.host = val;
7550 request.contentLength = parseInt(val, 10);
7555 request.contentType = val;
7557 request.headers[key] = processHeaderValue(key, val, skipAppend);
7559 request.headers += processHeaderValue(key, val);
7563 const value = typeof val === "string" ? val.toLowerCase() : null;
7578 if (Array.isArray(val)) {
7579 for (let i = 0; i < val.length; i++) {
7582 request.headers[key] += `,${processHeaderValue(key, val[i], skipAppend)}`;
7584 request.headers[key] = processHeaderValue(key, val[i], skipAppend);
7586 request.headers += processHeaderValue(key, val[i]);
7591 request.headers[key] = processHeaderValue(key, val, skipAppend);
7593 request.headers += processHeaderValue(key, val);
11234 const val = headersList[n + 1].toString("latin1");
11236 codings = val.toLowerCase().split(",").map((x) => x.trim());
11238 location = val;
11240 headers[kHeadersList].append(key, val);
11245 const val = headersList[key];
11247 codings = val.toLowerCase().split(",").map((x) => x.trim()).reverse();
11249 location = val;
11251 headers[kHeadersList].append(key, val);
11318 const val = headersList[n + 1].toString("latin1");
11319 headers[kHeadersList].append(key, val);