Acts as a client for AMF calls.
|
__init__(self,
url,
amf_version=0,
client_type=0,
referer=None,
user_agent=' PyAMF/0.5.1 ' ,
strict=False,
logger=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
addHeader(self,
name,
value,
must_understand=False)
Sets a persistent header to send with each request. |
source code
|
|
|
addHTTPHeader(self,
name,
value)
Adds a header to the underlying HTTP connection. |
source code
|
|
|
removeHTTPHeader(self,
name)
Deletes an HTTP header. |
source code
|
|
ServiceProxy
|
|
|
|
|
addRequest(self,
service,
*args)
Adds a request to be sent to the remoting gateway. |
source code
|
|
|
|
Envelope
|
|
|
|
|
execute_single(self,
request)
Builds, sends and handles the response to a single request, returning
the response. |
source code
|
|
|
execute(self)
Builds, sends and handles the responses to all requests listed in
self.requests . |
source code
|
|
|
|
|
setCredentials(self,
username,
password)
Sets authentication credentials for accessing the remote gateway. |
source code
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|
int
|
amf_version
The AMF version to use.
|
int
|
client_type
The client type.
|
httplib.HTTPConnection or
httplib.HTTPSConnection
|
connection
The underlying connection to the remoting server.
|
HeaderCollection
|
headers
A list of persistent headers to send with each request.
|
dict
|
http_headers
A dict of HTTP headers to apply to the underlying HTTP connection.
|
str
|
referer
The referer, or HTTP referer, identifies the address of the client.
|
|
request_number
A unique identifier for tracking the number of requests.
|
list
|
requests
The list of pending requests to process.
|
bool
|
strict
Whether to use strict AMF en/decoding or not.
|
str
|
url
The url of the remote gateway.
|
str
|
user_agent
Contains information about the user agent (client) originating the
request.
|