vtwxr / octo

web service framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Octo

Build Status

Build Status

Octo is an attempt to write a framework for webservices in C++

a static library that you should be able to drop in and write webservices, compile and deploy

#include <octo/octo.h>

void handleGet(octo::context ctx, octo::Request req, octo::Response res) {
    res->json({ "message": "ok" });
}

int main(int argc, char **argv) {
    octo::Service service;
    service.router->GET("/foo", handleGet);
    octo::RunInThread()->register(service)->run();
}

About

web service framework

License:GNU General Public License v2.0


Languages

Language:C++ 86.7%Language:CMake 12.9%Language:C 0.3%Language:Shell 0.1%