src/builder.js
/**
     * Extract and build the value for the HTTP headers,
     * useful to add into the CloudEvent in a custom attribute inside data.
     * If plugin flag 'includeHeaders' is enabled, headers will be returned,
     * otherwise nothing.
     * Note that some config options for builders are used here.
     *
     * @param {!object} request the request
     * @return {string} HTTP request headers, as a string, or undefined
     * @private
     */
Extract and build the value for the HTTP headers,
useful to add into the CloudEvent in a custom attribute inside data.
If plugin flag 'includeHeaders' is enabled, headers will be returned,
otherwise nothing.
Note that some config options for builders are used here.

@param {!object} request the request
@return {string} HTTP request headers, as a string, or undefined
@private
Extract and build the value for the HTTP headers useful to add into the CloudEvent in a custom attribute inside data . If plugin flag ' includeHeaders ' is enabled headers will be returned otherwise nothing . Note that some config options for builders are used here . @param { !object } request the request @return { string } HTTP request headers as a string or undefined @private
buildHeaders (request) {
      if (request === undefined || request === null) {
        throw new Error('Illegal value for request: undefined or null')
      }
      const headers = (includeHeaders === null || includeHeaders === false) ? undefined : request.headers
      return headers
    }
buildHeaders ( request ) { if ( request === undefined || request === null ) { throw new Error ( 'Illegal value for request: undefined or null' ) } const headers = ( includeHeaders === null || includeHeaders === false ) ? undefined : request . headers return headers }
Extract and build the value for the HTTP headers,
 useful to add into the CloudEvent in a custom attribute inside data.
Extract and build the value for the HTTP headers useful to add into the CloudEvent in a custom attribute inside data .