apache_beam.internal.http_client module

Utility functions used for creating a common Http client from httplib2.

For internal use only. No backwards compatibility guarantees.


Reads proxy info from the environment and converts to httplib2.ProxyInfo.

Parameters:proxy_env_var – environment variable string to read, http_proxy or https_proxy (in lower case). Example: http://myproxy.domain.com:8080
Returns:httplib2.ProxyInfo constructed from the environment string.

Creates and returns a new httplib2.Http instance.

Returns:An initialized httplib2.Http instance.