mock-angular.js
function applyRequestInterceptors(config) {
				for (var i = 0; i < interceptors.length; i++) {
					var interceptor = getInterceptor(interceptors[i]);
					if (interceptor.request) {
						config = interceptor.request(config);
					}
				}
				if (config.transformRequest) {
					config.data = applyTransform(config.data, config.headers, undefined, config.transformRequest);
				}
				return config;
			}
function applyRequestInterceptors(config) {
				for (var i = 0; i < interceptors.length; i++) {
					var interceptor = getInterceptor(interceptors[i]);
					if (interceptor.request) {
						config = interceptor.request(config);
					}
				}
				if (config.transformRequest) {
					config.data = applyTransform(config.data, config.headers, undefined, config.transformRequest);
				}
				return config;
			}
function applyRequestInterceptors ( config ) { for ( var i = 0 ; i < interceptors . length ; i ++ ) { var interceptor = getInterceptor ( interceptors [ i ] ) ; if ( interceptor . request ) { config = interceptor . request ( config ) ; } } if ( config . transformRequest ) { config . data = applyTransform ( config . data , config . headers , undefined , config . transformRequest ) ; } return config ; }
Apply request interceptors in forward order
@param config
@returns {*}
Apply request interceptors in forward order