/orni

Orni, http server for modern C++

Primary LanguageC++GNU Affero General Public License v3.0AGPL-3.0

Orni

Codacy Badge version license

http server for modern C++ inspired from expressjs, note orni is currently in development and have lot of bugs so don't expect high performance and efficient responses from the web server, so any pull request or issue is appreciated

Dependencies

Example

#include "orni_http_server.hpp"

int main(){
    orni::HttpServer app;
    app.route("/", [&](orni::Request&& req, orni::Response&& res){
        res.set("Content-Type", "text/html");
        res.send("<h1>Hello from orni !</h1>");
        res.dump();
    });
    app.run(1234);
}

More examples ?

head to examples folder !

TODO

  • params
  • queries
  • built-in ORM
  • html template rendering
  • documentation
  • cookies
  • encryption
  • cookie parser