Download Interface¶
-
class
fdroid_dl.download.
FuturesSessionFlex
(max_workers=1, user_agent='Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', *args, **kwargs)[source]¶ -
-
map
(pattern='http://', session=None)[source]¶ if called with session None -> default session for ctor is used
-
request
(*args, **kwargs)[source]¶ Maintains the existing api for Session.request.
Used by all of the higher level methods, e.g. Session.get.
The background_callback param allows you to do some processing on the response in the background, e.g. call resp.json() so that json parsing happens in the background thread.
:rtype : concurrent.futures.Future
-