apache / incubator-stormcrawler

A scalable, mature and versatile web crawler based on Apache Storm
https://stormcrawler.apache.org/
Apache License 2.0
887 stars 262 forks source link

To allow ProxyManager return null (or empty proxy) for not using a proxy for some specific requests #1246

Open chhsiao90 opened 3 months ago

chhsiao90 commented 3 months ago

What kind of issue is this?

In our use case, we have our own ProxyManager implementation, we'd like to have the flexibility to use proxies for some requests, but no proxy for other cases.

chhsiao90 commented 3 months ago

I'd like to create a PR for this.

jnioche commented 3 months ago

Yes please. ProxyManager could return an Optional depending on the Metadata. The code in the protocol implementations would need changing accordingly