Hi Nicolas, Thanks for the pointer. We're using MHD a lot with libjansson in GNU Taler and GNUnet, and there is some semi-generic logic in those projects that I'd love to eventually make even more generic. For example, see:
http://www.git.taler.net/?p=mint.git;a=blob;f=src/mint/taler-mint-httpd_parsing.c;h=365202905c574286c420cb46fe3f7dd004b395fa;hb=HEAD for logic to parse JSON data posted to the HTTPD. As I said, it's not quite abstract enough, but I do think there is a use for a generic library to handle JSON data that works nicely with MHD. So if you want to explore projects that combine JSON and MHD to be inspired for features/requirements/ideas, you may want to checkout libjansson uses in GNUnet and GNU Taler. Happy hacking! Christian On 12/18/2015 04:41 PM, Nicolas Mora wrote: > Hello, > > I'm working with MHD for a little while now, mostly to create home > automation applications that can work on small and embedded devices, > like Raspberry Pi or Cubieboard. > > At first, I used MHD with success, thanks to all the contributors. But I > wanted to facilitate the use of web services, as I could see in other > language's web application frameworks, such as Node JS Express, Revel in > Go language, etc. So I wrote a framework on top of MHD. > > The goal of Ulfius is to have a web application framework in C, simple > but efficient, and based on MHD because I know it and I like it, and > jansson for json objects manipulation. > > The idea is to divide the web application into different url endpoints. > When an endpoint is called by the user, the execution is delegated to a > callback function. > Also, since I work a lot with JSON inputs and outputs, I use json > objects using jansson library, which is a small json library in C. The > callback manipulates a request and a response objects. > > The url of the project is https://github.com/babelouest/ulfius > > I don't intend to replace MHD, far from it, but if anyone is interested > to check it and make some feedbacks, that would be much appreciated. > > Right now, it doesn't handle https connections, nor authentication, but > it will may be available in the future. > > I haven't tested it on other platforms than debian-based distributions, > but I assume this might work where MHD and jansson are available. > > /Nicolas >
signature.asc
Description: OpenPGP digital signature
