@param kwargs: Keyword arguments. - B{proxy} - An http proxy to be specified on requests. The proxy is defined as {protocol:proxy,} - type: I{dict} - default: {} - B{timeout} - Set the url open timeout (seconds
(self, **kwargs)
| 37 | """ |
| 38 | |
| 39 | def __init__(self, **kwargs): |
| 40 | """ |
| 41 | @param kwargs: Keyword arguments. |
| 42 | - B{proxy} - An http proxy to be specified on requests. |
| 43 | The proxy is defined as {protocol:proxy,} |
| 44 | - type: I{dict} |
| 45 | - default: {} |
| 46 | - B{timeout} - Set the url open timeout (seconds). |
| 47 | - type: I{float} |
| 48 | - default: 90 |
| 49 | """ |
| 50 | Transport.__init__(self) |
| 51 | Unskin(self.options).update(kwargs) |
| 52 | self.cookiejar = CookieJar() |
| 53 | self.proxy = {} |
| 54 | self.urlopener = None |
| 55 | |
| 56 | def open(self, request): |
| 57 | try: |