Skip to content

Commit

Permalink
feat: support cgi
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <[email protected]>
  • Loading branch information
zhaojh329 committed Aug 30, 2021
1 parent e557721 commit ffdf7de
Show file tree
Hide file tree
Showing 9 changed files with 542 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ A very flexible, lightweight and fully asynchronous HTTP server library based on
* Use [libev] as its event backend
* Support HTTPS - OpenSSL, mbedtls and CyaSSl(wolfssl)
* Support IPv6
* Support CGI
* Support plugin
* Support upload large file
* Support HTTP range requests
Expand Down
1 change: 1 addition & 0 deletions README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
* 使用[libev]作为其事件后端
* 支持HTTPS - OpenSSL, mbedtls 和 CyaSSl(wolfssl)
* 支持 IPv6
* 支持 CGI
* 支持插件
* 支持上传大文件
* 支持 HTTP 范围请求
Expand Down
1 change: 1 addition & 0 deletions example/simple_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ int main(int argc, char **argv)
srv->set_default_handler(srv, file_handler);
srv->add_path_handler(srv, "^/echo$", echo_handler);
srv->add_path_handler(srv, "^/upload$", upload_handler);
srv->add_path_handler(srv, "^/cgi-bin/", cgi_handler);

if (plugin_path)
srv->load_plugin(srv, plugin_path);
Expand Down
Loading

0 comments on commit ffdf7de

Please sign in to comment.