我用C搜索一个CGI LIB建立一个RESTful Web服务 [英] I'm searching a cgi lib in C to build a restful web service
问题描述
我想建立一个宁静(COAP)网络,可以执行C code来处理事件的服务。
I want to build a restful (CoAP) web service which can execute c code to handle events.
所以我在寻找一个lib它为我提供了一个在C REST API和CGI相似
restcgi这是可悲的是C ++或CGI-简单这是perl的。
Therefore I'm searching a lib which provides me with a rest api in C and cgi similar to restcgi which is sadly in c++ or CGI-Simple which is in perl.
服务器一个嵌入设备上运行,以便它已非常有限的资源和服务,将仅由机器来访问。
The server is running on a embedded device so it has very limited resources and the services will be accessed only by machines.
非常感谢你。
推荐答案
您可能感兴趣的 Raphters 框架及其架构。这是pretty小,所以你可以检查code,框架本身可以作为一个后端FastCGI的一些Web服务器,例如为nginx的。
You may be interested in Raphters framework and its architecture. It's pretty small, so you can examine the code, the framework itself can be used as a FastCGI backend for some web server, e.g. for nginx.
这篇关于我用C搜索一个CGI LIB建立一个RESTful Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!