Monero
Loading...
Searching...
No Matches
Public Attributes | Protected Member Functions | List of all members
upload.HttpRpcServer Class Reference
Inheritance diagram for upload.HttpRpcServer:
Inheritance graph
[legend]
Collaboration diagram for upload.HttpRpcServer:
Collaboration graph
[legend]

Public Attributes

 cookie_file
 
 cookie_jar
 
 authenticated
 
- Public Attributes inherited from upload.AbstractRpcServer
 host
 
 host_override
 
 auth_function
 
 authenticated
 
 extra_headers
 
 save_cookies
 
 opener
 

Protected Member Functions

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

Additional Inherited Members

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

Detailed Description

Provides a simplified RPC-style interface for HTTP requests.

Member Function Documentation

◆ _Authenticate() [1/2]

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

Reimplemented from upload.AbstractRpcServer.

◆ _Authenticate() [2/2]

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

Reimplemented from upload.AbstractRpcServer.

◆ _GetOpener() [1/2]

def 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]

def 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

◆ authenticated

upload.HttpRpcServer.authenticated

◆ cookie_file

upload.HttpRpcServer.cookie_file

◆ cookie_jar

upload.HttpRpcServer.cookie_jar

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