src/swproxy-mod-rewrite.js
/**
   *
   * @param proxy the swproxy instances
   * @returns {Function} function that returns a factory function to create rules
   */
@param proxy the swproxy instances
@returns {Function} function that returns a factory function to create rules
@param proxy the swproxy instances @returns { Function } function that returns a factory function to create rules
static factoryMethod(swproxy) {
    return (srcUrl, destUrl, modifier) => {
      let rule = new ModRewriteRule(srcUrl, destUrl, modifier);
      swproxy.addFetchRule(rule);
      return rule;
    };
  }
static factoryMethod ( swproxy ) { return ( srcUrl , destUrl , modifier ) => { let rule = new ModRewriteRule ( srcUrl , destUrl , modifier ) ; swproxy . addFetchRule ( rule ) ; return rule ; } ; }
@param proxy the swproxy instances
 @returns {Function} function that returns a factory function to create rules
@param proxy the swproxy instances @returns { Function } function that returns a factory function to create rules