pb-httprequest-manager
Posted: Fri Jun 04, 2021 8:38 pm
A queue manager for HTTPRequest(), supports timeouts, parallel requests and completion events. Originally created to mitigate a couple of bugs, but can also be used if you need to make a ton of requests with little effort.
Basic usage example:
The most recent version and more complex example can be found on github: https://github.com/deseven/pb-httprequest-manager
Basic usage example:
Code: Select all
IncludeFile "httprequest-manager.pbi"
InitNetwork()
HTTPRequestManager::init()
For i = 1 To 10
HTTPRequestManager::easyRequest(#PB_HTTP_Get,"https://google.com/")
Next
While HTTPRequestManager::getNumActive()
HTTPRequestManager::process()
Delay(50)
Wend
HTTPRequestManager::free(#PB_All)