A C++ header-only HTTP/HTTPS server and client library
httplib.h
#http #server #client #header-only #cpp #c++11 #library #small #lightweight
|
|
13 years ago | |
|---|---|---|
| example | 13 years ago | |
| test | 13 years ago | |
| .gitignore | 13 years ago | |
| Makefile | 13 years ago | |
| README.md | 13 years ago | |
| httplib.h | 13 years ago |
A C++ HTTP library.
The Boost Software License 1.0
Inspired by Sinatra
#include <httplib.h>
using namespace httplib;
int main(void)
{
Server svr("localhost", 1234);
svr.get("/hi", [](Connection& c) {
c.response.set_content("Hello World!", "text/plain");
});
svr.run();
}
Copyright (c) 2012 Yuji Hirose. All rights reserved.