Web Framework to build REST APIs, Webservices or any HTTP endpoint in C language. Can stream large amount of data, integrate JSON data with Jansson, and create
Web Framework to build REST APIs, Webservices or any HTTP endpoint in C language. Can stream large amount of data, integrate JSON data with Jansson, and create
HTTP Framework for REST Applications in C.
Based on GNU Libmicrohttpd for the backend web server, Jansson for the json manipulation library, and Libcurl for the http/smtp client API.
Used to facilitate creation of web applications in C programs with a small memory footprint, as in embedded systems applications.
You can create webservices in HTTP or HTTPS mode, stream data, or implement server websockets.
The source code of a hello world using Ulfius is the following:
…Create a webservice in a separate thread, the endpoint is identified by its method (ex: GET, POST, PUT, DELETE, etc.) and its URL path with its optional parameters (ex: /api/doc/@id). The webservice is executed in a callback function.
Stream large amount of data with a reduced memory footprint.
Websocket service, the websocket messages exchange is executed in dedicated callback functions.
Client http[s] and smtp requests execution, the response is parsed in a dedicated structure.
Client websocket request execution, the websocket messages exchange is executed in dedicated callback functions.
Create a websocket service application
Create websocket client application
CLI to connect to a remote websocket: uwsc
See INSTALL.md file for installation details
See API.md file for API documentation details
See the online documentation for a doxygen format of the API documentation.
Example programs are available to understand the different functionalities available, see example_programs folder for detailed sample source codes and documentation.
Example callback functions are available in the folder example_callbacks. The example callback functions available are:
I'm open for questions and suggestions, feel free to open an issue, a pull request or send me an e-mail if you feel like it!
No open issues yet, or sync has not completed.