function onResponse(response) {
	const array = interceptors
		.filter(i => i.response || i.responseError)
		.map(i => ({ on: i.response, onError: i.responseError }))
		.reverse();
	return onData(array, response);
}
/**
 * onResponse consume all interceptors to enrich the response object
 * @param {Object} response http response object
 * @return {Promise} response object
 */
onResponse consume all interceptors to enrich the response object
@param {Object} response http response object
@return {Promise} response object
onResponse consume all interceptors to enrich the response object @param { Object } response http response object @return { Promise } response object
function onResponse(response) {
	const array = interceptors
		.filter(i => i.response || i.responseError)
		.map(i => ({ on: i.response, onError: i.responseError }))
		.reverse();
	return onData(array, response);
}
function onResponse ( response ) { const array = interceptors . filter ( i => i . response || i . responseError ) . map ( i => ( { on : i . response , onError : i . responseError } ) ) . reverse ( ) ; return onData ( array , response ) ; }
onResponse consume all interceptors to enrich the response object
 @param {Object} response http response object
 @return {Promise} response object
onResponse consume all interceptors to enrich the response object @param { Object } response http response object @return { Promise } response object