This commit is contained in:
fwastring 2025-10-13 10:38:50 +02:00
commit ab9a0bd4e2
183 changed files with 20701 additions and 0 deletions

View file

@ -0,0 +1,18 @@
#include <http/singlerequest.h>
#include <framework/eventloop.h>
/* Example 001
Fetch http://frontend.bredbandskollen.se/api/servers, then exit.
Write debug log to stderr.
*/
int main(int , char *[]) {
Task *t = new SingleRequest("MyRequest",
"frontend.bredbandskollen.se",
"/api/servers");
EventLoop::runTask(t);
// Note: the object t will be deleted by the event loop.
return 0;
}