2019-06-04 00:03:37 +08:00
2019-05-18 22:52:03 +08:00
2019-06-03 14:05:45 +08:00
2019-06-03 14:05:45 +08:00
2019-05-18 22:52:03 +08:00
2019-06-04 00:03:37 +08:00
2019-05-18 22:52:03 +08:00
2019-05-18 22:57:50 +08:00
2019-05-18 22:52:03 +08:00
2019-06-03 14:05:45 +08:00
2019-06-04 00:03:37 +08:00
2019-06-04 00:03:37 +08:00
2019-05-18 22:52:03 +08:00
2019-06-03 14:05:45 +08:00
2019-06-04 00:03:37 +08:00
2019-06-03 14:05:45 +08:00
2019-06-04 00:03:37 +08:00
2019-06-04 00:03:37 +08:00

example

#include <iostream>
#include "server.h"

using namespace std;

int main() {
	chttp::Server s { };
	chttp::Router router { };
	router.Get("/about", [](chttp::Request req, chttp::Response res) {
		res.ServeHtml("index.html");
	});
	s.SetRouter(router);
	try {
		s.Test(1113);
	} catch (runtime_error& error) {
		cout << error.what() << endl;
	}
	return 0;
}

S
Description
A backend web framework based for c++.
Readme
44 KiB
Languages
C++ 97.6%
HTML 2.4%