I've been reading through the "Life of a URLRequest" and "Network Stack" documents, trying to learn the right way to attach to the URL loading process to intercept and modify all requests using a custom handler.
It appears to me like creating an instance of URLRequest::Interceptor is the right way to do that, but I'm not sure how to register the interceptor globally. If I'm barking up the wrong tree, any advice on the right way to look at it is greatly appreciated.
Is there perhaps an example someone has posted, or a unit test that shows the right way to do that?
Thank you in advance.
-J