An open API service indexing awesome lists of open source software.

https://github.com/eigilhs/c-natra

A Sinatra-style microframework for C.
https://github.com/eigilhs/c-natra

c dont-use-this-no-really libevent web-framework

Last synced: 10 months ago
JSON representation

A Sinatra-style microframework for C.

Awesome Lists containing this project

README

          

# C-natra

A Sinatra-style microframework for C. Very inspired by
[Bogart](https://github.com/tyler/Bogart), but probably even more
unsuitable for serious use (or any use at all).

```c
#include

get("/") {
html("

Hello, World!

");
return HTTP_OK;
}

serve(8000)
```

More examples [here](examples/example.c).

Depends on [libevent](https://github.com/libevent/libevent) 2.x.