Wizard
Software Engineering Project - Wizard
Loading...
Searching...
No Matches
upload.HttpRpcServer Class Reference

elif e.code >= 500 and e.code < 600: More...

Inheritance diagram for upload.HttpRpcServer:
upload.AbstractRpcServer

Public Attributes

 save_cookies
 
 cookie_file = os.open(self.cookie_file, os.O_CREAT, 0600)
 
 cookie_jar = cookielib.MozillaCookieJar(self.cookie_file)
 
bool authenticated = True
 
- Public Attributes inherited from upload.AbstractRpcServer
 host = host
 
 host_override = host_override
 
 auth_function = auth_function
 
bool authenticated = False
 
 extra_headers = extra_headers
 
 save_cookies = save_cookies
 
 opener = self._GetOpener()
 

Protected Member Functions

 _Authenticate (self)
 
 _GetOpener (self)
 
- Protected Member Functions inherited from upload.AbstractRpcServer
 _CreateRequest (self, url, data=None)
 
 _GetAuthToken (self, email, password)
 
 _GetAuthCookie (self, auth_token)
 

Additional Inherited Members

- Public Member Functions inherited from upload.AbstractRpcServer
 __init__ (self, host, auth_function, host_override=None, extra_headers={}, save_cookies=False)
 
 Send (self, request_path, payload=None, content_type="application/octet-stream", timeout=None, **kwargs)
 

Detailed Description

elif e.code >= 500 and e.code < 600:

Server Error - try again.

continue

Provides a simplified RPC-style interface for HTTP requests.

Member Function Documentation

◆ _Authenticate()

upload.HttpRpcServer._Authenticate ( self)
protected
Save the cookie jar after authentication.

Reimplemented from upload.AbstractRpcServer.

◆ _GetOpener()

upload.HttpRpcServer._GetOpener ( self)
protected
Returns an OpenerDirector that supports cookies and ignores redirects.

Returns:
  A urllib2.OpenerDirector object.

Reimplemented from upload.AbstractRpcServer.


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