MCPcopy Index your code
hub / github.com/pyload/pyload / getRequest

Method getRequest

module/network/RequestFactory.py:41–60  ·  view source on GitHub ↗
(self, pluginName, account=None, type="HTTP", **kwargs)

Source from the content-addressed store, hash-verified

39 return self.core.config["download"]["interface"]
40
41 def getRequest(self, pluginName, account=None, type="HTTP", **kwargs):
42 self.lock.acquire()
43
44 options = self.getOptions()
45 options.update(kwargs) # submit kwargs as additional options
46
47 if type == "XDCC":
48 req = XDCCRequest(self.bucket, options)
49
50 else:
51 req = Browser(self.bucket, options)
52
53 if account:
54 cj = self.getCookieJar(pluginName, account)
55 req.setCookieJar(cj)
56 else:
57 req.setCookieJar(CookieJar(pluginName))
58
59 self.lock.release()
60 return req
61
62 def getHTTPRequest(self, **kwargs):
63 """ returns a http request, dont forget to close it ! """

Callers 11

__init__Method · 0.80
resetAccountMethod · 0.80
loginMethod · 0.80
chooseMethod · 0.80
_initMethod · 0.80
_setupMethod · 0.80
setup_baseMethod · 0.80
setup_baseMethod · 0.80
processMethod · 0.80
setup_baseMethod · 0.80
_update_pluginsMethod · 0.80

Calls 9

getOptionsMethod · 0.95
getCookieJarMethod · 0.95
setCookieJarMethod · 0.95
XDCCRequestClass · 0.90
BrowserClass · 0.90
CookieJarClass · 0.90
acquireMethod · 0.80
updateMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected