packages.urllib3.contrib.appengine

Module Contents

Classes

AppEnginePlatformWarning()
AppEnginePlatformError()
AppEngineManager(self,headers=None,retries=None,validate_certificate=True) Connection manager for Google App Engine sandbox applications.

Functions

is_appengine()
is_appengine_sandbox()
is_local_appengine()
is_prod_appengine()
is_prod_appengine_mvms()
class AppEnginePlatformWarning
class AppEnginePlatformError
class AppEngineManager(headers=None, retries=None, validate_certificate=True)

Connection manager for Google App Engine sandbox applications.

This manager uses the URLFetch service directly instead of using the emulated httplib, and is subject to URLFetch limitations as described in the App Engine documentation here:

Notably it will raise an AppEnginePlatformError if:
  • URLFetch is not available.
  • If you attempt to use this on GAEv2 (Managed VMs), as full socket support is available.
  • If a request size is more than 10 megabytes.
  • If a response size is more than 32 megabtyes.
  • If you use an unsupported request method such as OPTIONS.

Beyond those cases, it will raise normal urllib3 errors.

__init__(headers=None, retries=None, validate_certificate=True)
__enter__()
__exit__(exc_type, exc_val, exc_tb)
urlopen(method, url, body=None, headers=None, retries=None, redirect=True, timeout=None, **response_kw)
_urlfetch_response_to_http_response(urlfetch_resp, **response_kw)
_get_absolute_timeout(timeout)
_get_retries(retries, redirect)
is_appengine()
is_appengine_sandbox()
is_local_appengine()
is_prod_appengine()
is_prod_appengine_mvms()