探索flutter框架开发的app在移动应用市场的潜力与挑战
1193
2022-10-19
Raphters- C语言的Web框架
Raphters 是一个C 语言的Web框架,基于 RAPHT 架构模式。包含如下模块:
Resources include things served up to clients like a database or API. Actions provide ways to interact with a Resource. Processors transform data. Handlers provide the entry point for a request. Templates render data.
示例代码:
#include "raphters.h"START_HANDLER (simple, GET, "simple", res, 0, matches) { response_add_header(res, "content-type", "text/html"); response_write(res, "hello world");} END_HANDLERSTART_HANDLER (default_handler, GET, "", res, 0, matches) { response_add_header(res, "content-type", "text/html"); response_write(res, "default page");} END_HANDLERint main() { add_handler(simple); add_handler(default_handler); serve_forever(); return 0;}
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~