A C++ header-only HTTP/HTTPS server and client library
| example | ||
| test | ||
| .gitignore | ||
| httplib.h | ||
| README.md | ||
cpp-httplib
A C++ HTTP library.
The Boost Software License 1.0
Server Example
Inspired by Sinatra
#include <httplib.h>
int main(void) {
HTTP_SERVER("localhost", 1234) {
GET("/hi", {
res.set_content("Hello World!");
});
}
}
Copyright (c) 2012 Yuji Hirose. All rights reserved.