src/builder.js
/**
     * Extract and build the value for the client IP address,
     * useful to add into the CloudEvent in a custom attribute inside data,
     * otherwise nothing.
     *
     * @param {!object} request the request
     * @return {string} the IP address, as a string or undefined
     * @private
     */
Extract and build the value for the client IP address,
useful to add into the CloudEvent in a custom attribute inside data,
otherwise nothing.

@param {!object} request the request
@return {string} the IP address, as a string or undefined
@private
Extract and build the value for the client IP address useful to add into the CloudEvent in a custom attribute inside data otherwise nothing . @param { !object } request the request @return { string } the IP address as a string or undefined @private
buildClientIP (request) {
      if (request === undefined || request === null) {
        throw new Error('Illegal value for request: undefined or null')
      }
      return request.ip || undefined
    }
buildClientIP ( request ) { if ( request === undefined || request === null ) { throw new Error ( 'Illegal value for request: undefined or null' ) } return request . ip || undefined }
Extract and build the value for the client IP address,
 useful to add into the CloudEvent in a custom attribute inside data,
 otherwise nothing.
Extract and build the value for the client IP address useful to add into the CloudEvent in a custom attribute inside data otherwise nothing .