Commit Graph

19 Commits (8a8680f92a2de46aa379084228b66aa9ceb283de)

Author SHA1 Message Date
Jianhui Zhao 568a287feb Restructure with libubox
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-12-29 14:40:58 +08:00
Jianhui Zhao 62a3a563f1 Renamed project: libuhttp -> libuhttpd
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-12-29 11:44:03 +08:00
Jianhui Zhao 6f0f62faa8 Lua template: Add Http Variables
<h1>------------Http Variables-------------</h1>
<%for k, v in pairs(_UHTTP["VARIABLES"]) do%>
<h1><%=k%>: <%=v%></h1>
<%end%>

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-12-09 23:28:32 +08:00
Jianhui Zhao 52f6309844 Lua template: Add the headers variable
Example:

<%for k, v in pairs(_UHTTP["HEADERS"]) do%>
<h1><%=k%>: <%=v%></h1>
<%end%>

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-12-05 23:01:44 +08:00
Jianhui Zhao d38f1d1f4b Add test file for Lua template
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-12-05 16:53:19 +08:00
Jianhui Zhao e4d8ce13ef Support Lua template
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-12-05 16:46:57 +08:00
Jianhui Zhao 7ec4490eae Change the names of variables and functions to make them more readable.
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-27 12:50:38 +08:00
Jianhui Zhao af2c594e09 Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-26 15:30:37 +08:00
Jianhui Zhao 9702ab5851 Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-22 23:04:28 +08:00
Jianhui Zhao 32f478f370 Optimize directory organization structure
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-22 22:57:38 +08:00
Jianhui Zhao f9184839ff New function: uh_unescape()
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-14 22:16:26 +08:00
Jianhui Zhao 196c6e3814 New function uh_get_var() but need to perfect
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-14 00:03:48 +08:00
Jianhui Zhao 3d92d0665f Fix bug: Incorrect use the function uh_con_reuse()
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-13 23:36:17 +08:00
Jianhui Zhao ee31e3f1fa In order to be compatible with different editor, convert all Tab to spaces
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-13 20:51:42 +08:00
Jianhui Zhao 383f325547 Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-12 19:23:12 +08:00
Jianhui Zhao 73c08a4bcf Optimize code for example
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-12 15:11:39 +08:00
Jianhui Zhao 5757cbeb78 New script used to automatically generate SSL certificate files
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-11 17:10:22 +08:00
Jianhui Zhao fbbea9df30 Basically complete SSL support: Optional OpenSSL and CyaSSl(wolfssl)
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-10 18:51:49 +08:00
Jianhui Zhao 38f1f37467 The basic framework is implemented
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
2017-11-09 12:54:28 +08:00