MCPcopy Index your code
hub / github.com/nodejs/node / addTrailers

Method addTrailers

lib/internal/http2/compat.js:586–593  ·  view source on GitHub ↗
(headers)

Source from the content-addressed store, hash-verified

584 }
585
586 addTrailers(headers) {
587 const keys = ObjectKeys(headers);
588 let key = '';
589 for (let i = 0; i < keys.length; i++) {
590 key = keys[i];
591 this.setTrailer(key, headers[key]);
592 }
593 }
594
595 getHeader(name) {
596 validateString(name, 'name');

Calls 1

setTrailerMethod · 0.95

Tested by

no test coverage detected