Monero
Loading...
Searching...
No Matches
upload.HttpRpcServer Class Reference

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

Inheritance diagram for upload.HttpRpcServer:
Collaboration diagram for upload.HttpRpcServer:

Public Attributes

 cookie_file
 cookie_jar = cookielib.MozillaCookieJar(self.cookie_file)
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)
 _Authenticate (self)
 _GetOpener (self)
Protected Member Functions inherited from upload.AbstractRpcServer
 _CreateRequest (self, url, data=None)
 _GetAuthToken (self, email, password)
 _GetAuthCookie (self, auth_token)
 _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)
 __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.

Server Error - try again.

continue

Provides a simplified RPC-style interface for HTTP requests.

Member Function Documentation

◆ _Authenticate() [1/2]

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

Reimplemented from upload.AbstractRpcServer.

◆ _Authenticate() [2/2]

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

Reimplemented from upload.AbstractRpcServer.

◆ _GetOpener() [1/2]

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

Returns:
  A urllib2.OpenerDirector object.

Reimplemented from upload.AbstractRpcServer.

◆ _GetOpener() [2/2]

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

Returns:
  A urllib2.OpenerDirector object.

Reimplemented from upload.AbstractRpcServer.

Member Data Documentation

◆ cookie_file

upload.HttpRpcServer.cookie_file

◆ cookie_jar

upload.HttpRpcServer.cookie_jar = cookielib.MozillaCookieJar(self.cookie_file)

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