Lines Matching refs:field
581 function matchHeader(self, state, field, value) {
582 if (field.length < 4 || field.length > 17)
584 field = StringPrototypeToLowerCase(field);
585 switch (field) {
608 state[field] = true;
690 const field = StringPrototypeToLowerCase(name);
692 if (headers === null || !headers[field]) {
696 // Prepare the field for appending, if required
697 if (!ArrayIsArray(headers[field][1])) {
698 headers[field][1] = [headers[field][1]];
701 const existingValues = headers[field][1];
961 let field, value;
964 field = headers[key][0];
967 field = key;
970 validateHeaderName(field, 'Trailer name');
972 // Check if the field must be sent several times
976 (!this[kUniqueHeaders] || !this[kUniqueHeaders].has(StringPrototypeToLowerCase(field)))
980 debug('Trailer "%s"[%d] contains invalid characters', field, j);
981 throw new ERR_INVALID_CHAR('trailer content', field);
983 this._trailer += field + ': ' + value[j] + '\r\n';
991 debug('Trailer "%s" contains invalid characters', field);
992 throw new ERR_INVALID_CHAR('trailer content', field);
994 this._trailer += field + ': ' + value + '\r\n';