chromium / web-page-replay

DEPRECATED - Use WebPageReplayGo instead:
https://github.com/catapult-project/catapult/blob/master/web_page_replay_go/README.md
Apache License 2.0
235 stars 75 forks source link

Whitelist domains using rule #98

Open bootstraponline opened 7 years ago

bootstraponline commented 7 years ago

I've had to patch httproxy like this to enable using real fetches on matching URLs in replay mode. Is there a reason this can't be done using a rule? The only example of a rule is for logging. I created a rule to modify the response and it didn't do anything.

real_dns_lookup = dnsproxy.RealDnsLookup(
  name_servers=[platformsettings.get_original_primary_nameserver()],
  dns_forwarding=True, proxy_host='0.0.0.0', proxy_port=53)
real_fetch = httpclient.RealHttpFetch(real_dns_lookup)
response = real_fetch(request)