Skip to content
This repository

onion is a lightweight library to help you create webservers in C programming language. These webservers may be a web application, a means of expanding your own application to give it web functionality or even a fully featured webserver.

The user can create new handlers that serve reading data from a file or creating them. However, there are many default handlers included to address the most frequently required needs.

The name onion comes from the idea that the path transversal is being done using many layers of handlers: on one layer you set the auth control, on another you check the server hostname (so that you could have virtual hosts) and on yet another a regular expression sends you across to one or another path... Check on examples for how to do it.

Documentation

Full API is described at http://coralbits.com/static/onion/ . On this wiki there are some recipes on how to use different parts of the API.

If you plan to learn on how to use onion, first scan through this wiki not centering on the details but on general ideas, then go through the examples and when information on specific functions/structures is needed go to the API documentation.

Features

Current usage

onion is currently being used on ARM projects and comes with several quite usefull example programs.

License

onion is licensed under LGPLv3 and AGPLv3 licenses. This allows to use it on any project. If you need consultant help for any project, please check at http://www.coralbits.com, as a commercial support is available.

Contact

There is a mailing list at https://groups.google.com/a/coralbits.com/group/onion-dev/topics.

Also feel free to contact us at info@coralbits.com, or use the Issue tracker at github.

Something went wrong with that request. Please try again.