Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

wolgemoth/curl-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

CURL Wrapper (Requests.hpp)

About

This is a a C++ wrapper for libcurl that provides a cleaner scripting interface and support for asynchronous requests.

It works on a RAII basis and hides any raw pointers exposed by the CURL library through the use of encapsulation. It also provides several utility functions such as checking the status of a request.

If you find a bug or have a feature-request, please raise an issue.

Example

(On program start ...)
Networking::Requests::Init();

(Runtime...)
auto message = Networking::Requests::Client(query);
message.Set(CURLOPT_TIMEOUT, 20);

auto response = message.Send();

(Finalisation...)
Networking::Requests::Dispose();

Dependencies

Instructions

The implementation is header-only and written in templated C++17. You should need not need to make any adjustments to your project settings or compiler flags.

Simply include the header and dependencies in your project and you are ready to start!

Packages

No packages published

Contributors 2

  •  
  •  

Languages