Sometimes a request may contain ever changing arguments,
say https://api.mysite.com/query?from_time=1573640503270&to_time=1573640603270, here the from_time may just be value from a 'new Date()', it's very difficult to intercept an url like this.
So the interceptor should be able to handle url with a pattern, regex might be overkill. A pattern like * should suffice.
Sometimes a request may contain ever changing arguments,
say https://api.mysite.com/query?from_time=1573640503270&to_time=1573640603270, here the from_time may just be value from a 'new Date()', it's very difficult to intercept an url like this.
So the interceptor should be able to handle url with a pattern, regex might be overkill. A pattern like * should suffice.