Skip to content

A tiny, no-dependencies, header-only HTTP 1.1 client library for C++ (very, very alpha)

License

Notifications You must be signed in to change notification settings

csachs/picohttpclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

picohttpclient

A generic, lightweight HTTP 1.1 client. It was born out of the need to quickly do very simple HTTP requests, without adding larger dependencies to a project.

License: MIT

  • no complex features, no chunking, no ssl, no keepalive ...
  • not very tested, use at your own risk!
  • it PURPOSELY does not use any feature-complete libraries (like cURL) to stay lean and header-only.
  • it does not use C++11 features to fit well in legacy code bases
  • it has some suboptimal properties (like many string copy ops)

Usage as easy as (see main.cpp for an example):

HTTPResponse response = HTTPClient::request(HTTPClient::GET, URI("http://example.com"));
cout << response.body << endl;

About

A tiny, no-dependencies, header-only HTTP 1.1 client library for C++ (very, very alpha)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages