OpenQuizz
Une application de gestion des contenus pédagogiques
AppEngineManager Class Reference
Inheritance diagram for AppEngineManager:
Collaboration diagram for AppEngineManager:

Public Member Functions

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)
 
- Public Member Functions inherited from RequestMethods
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)
 

Data Fields

 validate_certificate
 
 urlfetch_retries
 
 retries
 
- Data Fields inherited from RequestMethods
 headers
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  headers = None,
  retries = None,
  validate_certificate = True,
  urlfetch_retries = True 
)

Member Function Documentation

◆ __enter__()

def __enter__ (   self)

◆ __exit__()

def __exit__ (   self,
  exc_type,
  exc_val,
  exc_tb 
)

◆ urlopen()

def urlopen (   self,
  method,
  url,
  body = None,
  headers = None,
  retries = None,
  redirect = True,
  timeout = Timeout.DEFAULT_TIMEOUT,
**  response_kw 
)

Field Documentation

◆ retries

retries

◆ urlfetch_retries

urlfetch_retries

◆ validate_certificate

validate_certificate

The documentation for this class was generated from the following file: