1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 """
18 Contains classes for transport options.
19 """
20
21
22 from suds.transport import *
23 from suds.properties import *
24
25
27 """
28 Options:
29 - B{proxy} - An http proxy to be specified on requests.
30 The proxy is defined as {protocol:proxy,}
31 - type: I{dict}
32 - default: {}
33 - B{timeout} - Set the url open timeout (seconds).
34 - type: I{float}
35 - default: 90
36 - B{headers} - Extra HTTP headers.
37 - type: I{dict}
38 - I{str} B{http} - The I{http} protocol proxy URL.
39 - I{str} B{https} - The I{https} protocol proxy URL.
40 - default: {}
41 - B{username} - The username used for http authentication.
42 - type: I{str}
43 - default: None
44 - B{password} - The password used for http authentication.
45 - type: I{str}
46 - default: None
47 """
49 domain = __name__
50 definitions = [
51 Definition('proxy', dict, {}),
52 Definition('timeout', (int,float), 90),
53 Definition('headers', dict, {}),
54 Definition('username', basestring, None),
55 Definition('password', basestring, None),
56 ]
57 Skin.__init__(self, domain, definitions, kwargs)
58