quackscience / duckdb-extension-httpclient

DuckDB HTTP GET/POST Client in a Community Extension
https://duckdb.org/community_extensions/extensions/http_client.html
MIT License
41 stars 4 forks source link

Support for Network Proxies #10

Open redraiment opened 2 weeks ago

redraiment commented 2 weeks ago

Is there a consideration to support network proxies? For example, setting network proxies via function arguments or environment variables.

lmangani commented 2 weeks ago

The underlying library is httplib used by DuckDB so technically speaking anything httplib can be used and/or attached to a parameter, ie:

// Set Proxy
cli.set_proxy("host", port);

// Basic Authentication
cli.set_proxy_basic_auth("user", "pass");

// Digest Authentication
cli.set_proxy_digest_auth("user", "pass");

// Bearer Token Authentication
cli.set_proxy_bearer_token_auth("pass");