|
def | __init__ (self, headers=None, retries=None, validate_certificate=True, urlfetch_retries=True) |
|
def | __enter__ (self) |
|
def | __exit__ (self, exc_type, exc_val, exc_tb) |
|
def | urlopen (self, method, url, body=None, headers=None, retries=None, redirect=True, timeout=Timeout.DEFAULT_TIMEOUT, **response_kw) |
|
def | __init__ (self, headers=None) |
|
def | urlopen (self, method, url, body=None, headers=None, encode_multipart=True, multipart_boundary=None, **kw) |
|
def | request (self, method, url, fields=None, headers=None, **urlopen_kw) |
|
def | request_encode_url (self, method, url, fields=None, headers=None, **urlopen_kw) |
|
def | request_encode_body (self, method, url, fields=None, headers=None, encode_multipart=True, multipart_boundary=None, **urlopen_kw) |
|
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
<https://cloud.google.com/appengine/docs/python/urlfetch>`_.
Notably it will raise an :class:`AppEnginePlatformError` if:
* URLFetch is not available.
* If you attempt to use this on App Engine Flexible, as full socket
support is available.
* If a request size is more than 10 megabytes.
* If a response size is more than 32 megabytes.
* If you use an unsupported request method such as OPTIONS.
Beyond those cases, it will raise normal urllib3 errors.