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