Skip to content
/ cq Public

requests-like networking library using boost for C++

License

Notifications You must be signed in to change notification settings

Y77CH/cq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cq == C++ Requests

Documentation License

cq == C++ Requests is a "Python Requests"-like C++ header-only library for sending HTTP requests. The library is inspired a lot by the Cpr project, yet tries to be even more simple.

Sending a GET request is nothing more than:

#include "requests.hpp"

int main()
{
  auto r = requests::get("https://api.github.com/user", requests::auth{"user", "pass"});

  r.status_code;             // 200
  r.headers["content-type"]; // "application/json; charset=utf8"
  r.text;                    // "{\"type\":\"User\"..."

  return 0;
}

Documentation

Documentation can be found here. Work in progress.

Dependencies

  • cURL
  • Compiler that supports C++20

Contributing

Please fork this repository and contribute back using pull requests. Features can be requested using issues. All code, comments, and critiques are greatly appreciated.

About

requests-like networking library using boost for C++

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages