
想在图形化程序中集成一个 http server ,只要能显示静态页面就行,要求巧,不超过几兆,最好有命令行参数
1 g00001 2016-03-31 15:47:35 +08:00 用 aardio 生成一个迷你 HTTP 服务器 + 浏览器壳子界面,也就几百 KB ,还支持类似 PHP 的模板语言,示例代码: import win.ui; /*DSG{{*/ var winform = win.form(text="HTTP 服务器已启动";right=759;bottom=469) /*}}*/ import web.form; var wb = web.form( winform); import wsock.tcp.simpleHttpServer; wb.go( wsock.tcp.simpleHttpServer.startUrl() + "/index.html" ); winform.show(); win.loopMessage(); |
2 9hills 2016-03-31 15:48:24 +08:00 |
3 realpg PRO 有个 tinyhttpserver c 写的 德国人写的 游戏源代码 不知道还萌不萌找到 当年还没 github 时候在国外搜到的 |
4 josephshen 2016-03-31 16:08:22 +08:00 via iPad Nodejs with http-server, fast and easy to use. |
5 xuboying OP |
7 liyvhg 2016-03-31 16:35:52 +08:00 via Android httpfileserver |
8 josephshen 2016-03-31 16:52:51 +08:00 via iPad Pack nodejs with UPX, the executable size can be just 4mb, with the http-server module the total size will no more than 4.2mb. Although it is still bigger than nginx, you will find it more easy to use and configure. |
9 xspoco 2016-03-31 16:56:51 +08:00 Everything |
10 6IbA2bj5ip3tK49j 2016-03-31 17:02:55 +08:00 |
11 Andy1999 2016-03-31 17:03:42 +08:00 via iPhone IIS 8.5+ 默秒全 |
13 flynaj 2016-03-31 21:05:46 +08:00 via Android nginx |
14 flynaj 2016-03-31 21:12:57 +08:00 via Android golang package main import ( "net/http" ) func main() { http.Handle("/", http.FileServer( http.Dir("/tmp/static/"))) http.ListenAndServe(":8080", nil) } |
15 alex321 2016-03-31 21:18:06 +08:00 Caddy/Nginx |
16 yamada 2016-03-31 21:18:43 +08:00 c# 中的 httplistener |
17 ivmm 2016-03-31 21:19:18 +08:00 IIS10 秒全家 |
18 SmiteChow 2016-03-31 22:12:41 +08:00 caddy+1 |
19 Vicer 2016-05-05 10:35:53 +08:00 via Android HFS 图形化配置,也就几兆吧 |