Skip to content

Easy to use HTTP client written in Qt/C++

Notifications You must be signed in to change notification settings

bidstack/bidstack-http

Repository files navigation

bidstack-http

Easy to use HTTP client written in Qt/C++

Usage

#include<QCoreApplication> #include<QDebug> #include"httpclient.hpp"usingnamespaceBidstack::Http;intmain(int argc, char *argv[]){QCoreApplication app(argc, argv); QMap<QString, QString> headers; headers.insert("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"); HttpRequest *request = newHttpRequest(); request->setMethod("GET"); request->setUrl(QUrl("https://github.com/bidstack/bidstack-http")); request->setHeaders(headers); HttpClient *client = newHttpClient(); Response *response = client->send(request); qDebug() << "Headers:" << response->headers(); qDebug() << "HTTP Status:" << response->status(); qDebug() << "Body:" << response->body()->toString(); return0}

About

Easy to use HTTP client written in Qt/C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages