想在图形化程序中集成一个 http server ,只要能显示静态页面就行,要求小巧,不超过几兆,最好有命令行参数
1
g00001 Mar 31, 2016 用 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 Mar 31, 2016 |
3
realpg PRO 有个 tinyhttpserver
c 写的 德国人写的 游戏源代码 不知道还萌不萌找到 当年还没 github 时候在国外搜到的 |
4
josephshen Mar 31, 2016 via iPad Nodejs with http-server, fast and easy to use.
|
5
xuboying OP |
7
liyvhg Mar 31, 2016 via Android httpfileserver
|
8
josephshen Mar 31, 2016 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 Mar 31, 2016 Everything
|
10
6IbA2bj5ip3tK49j Mar 31, 2016 |
11
Andy1999 Mar 31, 2016 via iPhone IIS 8.5+ 默秒全
|
13
flynaj Mar 31, 2016 via Android
nginx
|
14
flynaj Mar 31, 2016 via Android
golang
package main import ( "net/http" ) func main() { http.Handle("/", http.FileServer( http.Dir("/tmp/static/"))) http.ListenAndServe(":8080", nil) } |
15
alex321 Mar 31, 2016
Caddy/Nginx
|
16
yamada Mar 31, 2016
c# 中的 httplistener
|
17
ivmm Mar 31, 2016
IIS10 秒全家
|
18
SmiteChow Mar 31, 2016
caddy+1
|
19
Vicer May 5, 2016 via Android
HFS 图形化配置,也就几兆吧
|