lib/collection/request.js
function getHeaders (options) {
        !options && (options = {});

        // @note: options.multiValue will not be respected since, Header._postman_propertyAllowsMultipleValues
        // gets higher precedence in PropertyLists~toObject.
        // @todo: sanitizeKeys for headers by default.
        return this.headers.toObject(options.enabled, !options.ignoreCase, options.multiValue, options.sanitizeKeys);
    }
function getHeaders (options) {
        !options && (options = {});

        // @note: options.multiValue will not be respected since, Header._postman_propertyAllowsMultipleValues
        // gets higher precedence in PropertyLists~toObject.
        // @todo: sanitizeKeys for headers by default.
        return this.headers.toObject(options.enabled, !options.ignoreCase, options.multiValue, options.sanitizeKeys);
    }
function getHeaders ( options ) { ! options && ( options = { } ) ; // @note: options.multiValue will not be respected since, Header._postman_propertyAllowsMultipleValues // gets higher precedence in PropertyLists~toObject. // @todo: sanitizeKeys for headers by default. return this . headers . toObject ( options . enabled , ! options . ignoreCase , options . multiValue , options . sanitizeKeys ) ; }
Returns an object where the key is a header name and value is the header value.

@param {Object=} options
@param {Boolean} options.ignoreCase When set to "true", will ensure that all the header keys are lower case.
@param {Boolean} options.enabled Only get the enabled headers
@param {Boolean} options.multiValue When set to "true", duplicate header values will be stored in an array
@param {Boolean} options.sanitizeKeys When set to "true", headers with falsy keys are removed
@returns {Object}
@note If multiple headers are present in the same collection with same name, but different case
(E.g "x-forward-port" and "X-Forward-Port", and `options.ignoreCase` is set to true,
the values will be stored in an array.
Returns an object where the key is a header name and value is the header value .