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.

apache_beam.internal.http_client.proxy_info_from_environment_var(proxy_env_var)[source]

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.
apache_beam.internal.http_client.get_new_http(timeout_secs=60)[source]

Creates and returns a new httplib2.Http instance.

Returns:An initialized httplib2.Http instance.