Jianhui Zhao
|
040763a64a
|
Support parse url
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
|
2020-03-14 14:03:48 +08:00 |
Jianhui Zhao
|
5f4f6e0d97
|
support plugin
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
|
2020-03-14 00:25:42 +08:00 |
Jianhui Zhao
|
2ff3be7dc1
|
beautify code style
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
|
2020-03-13 23:09:48 +08:00 |
Jianhui Zhao
|
563ad01821
|
Change the license information
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
|
2019-09-03 15:03:35 +08:00 |
Jianhui Zhao
|
471e4fe436
|
Use libev instead of libubox
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2019-08-31 16:33:08 +08:00 |
Jianhui Zhao
|
34e94f6d5e
|
Lua binding: Make the code more robust
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-07-25 13:19:38 +08:00 |
Jianhui Zhao
|
deaec21076
|
Lua binding: Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-07-25 11:08:59 +08:00 |
Jianhui Zhao
|
ddf6e8dd86
|
libuhttpd: New callback: on_accept
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-07-23 23:42:16 +08:00 |
Jianhui Zhao
|
f21e2001e1
|
Lua binding: Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-07-23 23:29:12 +08:00 |
Jianhui Zhao
|
6f756b6d99
|
Optimization function name
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-07-23 23:11:43 +08:00 |
Jianhui Zhao
|
52f35b9109
|
Lua binding: Improve performance
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-07-21 17:37:14 +08:00 |
Jianhui Zhao
|
3b1d425d07
|
More simplly to use
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-07-21 16:41:19 +08:00 |
Jianhui Zhao
|
abd7dbb17a
|
example/template.c: dos2unix
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-07-21 16:09:19 +08:00 |
Jianhui Zhao
|
4ae06b8150
|
Lua binding: New API: `set_log_threshold` and `log`
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-07-21 13:26:02 +08:00 |
Jianhui Zhao
|
8f8a29adc5
|
Lua binding: New API: set_options
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-07-19 21:27:51 +08:00 |
Jianhui Zhao
|
c6441851f6
|
Lua API: New API: set_error404_cb
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-07-19 14:03:14 +08:00 |
Jianhui Zhao
|
dcb397a62c
|
libuhttpd: New API
int uh_server_open(const char *host, int port);
void uh_server_init(struct uh_server *srv, int sock);
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-07-19 13:35:30 +08:00 |
Jianhui Zhao
|
90fad37a4c
|
example:helloworld.c: Fix bug: May be reference a NULL pointer.
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-07-18 21:51:11 +08:00 |
Jianhui Zhao
|
f03acc8b5c
|
Lua API: Add function: ssl_init
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-07-18 16:58:29 +08:00 |
Jianhui Zhao
|
64d3036347
|
Lua API: example: Check whether the query is nil
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-07-18 14:15:48 +08:00 |
Jianhui Zhao
|
87c00d2291
|
Lua API: Add path field
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-07-18 14:13:12 +08:00 |
Jianhui Zhao
|
365e84fec3
|
Lua api: Support
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-07-18 14:06:21 +08:00 |
Jianhui Zhao
|
f6d609dded
|
chmod 644
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-03-18 10:48:32 +08:00 |
Jianhui Zhao
|
2210378a91
|
Fix compile errr when not enable Lua.
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-03-12 10:57:50 +08:00 |
Jianhui Zhao
|
379bfd2479
|
change license to LGPL2
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-03-03 17:33:49 +08:00 |
Jianhui Zhao
|
81de054b07
|
Support Lua template
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-02-13 21:43:35 +08:00 |
Jianhui Zhao
|
60e052c6b8
|
Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-01-17 12:57:23 +08:00 |
Jianhui Zhao
|
573969eadd
|
Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-01-17 12:50:25 +08:00 |
Jianhui Zhao
|
33e2f8e272
|
Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-01-10 23:30:24 +08:00 |
Jianhui Zhao
|
769b6d2dbd
|
example/helloworld.c: Fix segment fault
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-01-08 14:29:08 +08:00 |
Jianhui Zhao
|
ad46c0592b
|
Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-01-06 14:38:34 +08:00 |
Jianhui Zhao
|
c9252d78e4
|
Optimize build for example
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-01-05 21:46:03 +08:00 |
Jianhui Zhao
|
cbe7173205
|
New member function for struct uh_client
cl->get_url(cl);
cl->get_var(cl, "name");
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-01-01 11:44:46 +08:00 |
Jianhui Zhao
|
89851e3f33
|
Optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-01-01 10:30:41 +08:00 |
Jianhui Zhao
|
4fc1826889
|
Optimize example
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2018-01-01 09:37:59 +08:00 |
Jianhui Zhao
|
eede72a4d2
|
Move gen_cert.sh and openssl.cnf to example
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-12-30 12:41:17 +08:00 |
Jianhui Zhao
|
4fe8482b9f
|
Fix compile example failed
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-12-30 12:34:19 +08:00 |
Jianhui Zhao
|
c1da233ab0
|
Improve CMakeLists.txt
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-12-30 12:24:00 +08:00 |
Jianhui Zhao
|
3aa5d2aeed
|
Fix License format
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-12-30 11:36:20 +08:00 |
Jianhui Zhao
|
ab0228ffa8
|
Support parse POST data
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
|
2017-12-29 17:48:06 +08:00 |
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 |