mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-11-15 19:13:39 +00:00
42473b722f8db6304ea8b28a689f1d8ac409867f
cpp-httplib
A C++ HTTP library.
The Boost Software License 1.0
Server Example
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!");
});
svr.run();
}
Copyright (c) 2012 Yuji Hirose. All rights reserved.
Description
A C++ header-only HTTP/HTTPS server and client library
Readme
MIT
13 MiB
0 Stars
1 Watchers
0 Forks
Languages
C++
96%
Shell
1.2%
CMake
1.1%
Makefile
0.6%
Meson
0.4%
Other
0.6%