Lightweight HTTP C++ library / curl wrapper for web scrappers, session emulators, restful applications inspired by Laravel HTTP client / Guzzle
  • C++ 95.1%
  • CMake 4.9%
Find a file
2024-01-18 14:52:42 +07:00
.idea ability to send params with post request, fix of several linking errors occurring while linking the lib recursively 2024-01-18 14:52:15 +07:00
examples Initial commit 2024-01-12 12:34:36 +07:00
.gitignore Initial commit 2024-01-12 12:34:36 +07:00
CMakeLists.txt Initial commit 2024-01-12 12:34:36 +07:00
Docs.md ability to send params with post request, fix of several linking errors occurring while linking the lib recursively 2024-01-18 14:52:15 +07:00
http_lib.hpp ability to send params with post request, fix of several linking errors occurring while linking the lib recursively 2024-01-18 14:52:15 +07:00
Readme.md Update Readme.md 2024-01-12 12:36:34 +07:00

MuskratHTTP C++ HTTP client

About

Muskrat is a lightweight HTTP client and curl wrapper written in modern C++ inspired by Laravel HTTP client/guzzle. Muskrat provides many useful features for purposes such as web scrapping, session emulation, oauth processing, and REST API calls.

It's a header only thread safe library written in C++ 17 with only one dependency.

Documentation | Examples

Features

  • Ability to send custom request headers
  • Ability to set cookies
  • GET/POST methods support
  • Automated request retry on failure
  • Configurable timeouts
  • Flexible and simple request builder
  • Request authorization support
  • Proxy support
  • Thread safety

Dependencies

  • libcurl (8.0.0+ version recommended)

Why?

I've had several projects that require advanced web scrapping and session emulation lately. Although the requirements are not rocket science, I struggled to find decent http client that would suit my needs yet be lightweight and easy to maintain, that's why I paid with one hour of my time in bed for this project creation. It's heavily inspired by Laravel HTTP client (guzzle wrapper), so you can find lots of similarities between the two.

Why muskrat?

Muskrats are cool, and there are a lot of them in Khabarovsk. I would've written here more explanation and what I think, but 280.1 won't let me.

Peace to you and your home