20 releases

new 0.1.11 Nov 16, 2024
0.1.10 Nov 10, 2024
0.1.6 Oct 24, 2024
0.1.1 Sep 28, 2024
0.0.9 Aug 18, 2024

#77 in WebSocket

Download history 175/week @ 2024-08-10 484/week @ 2024-08-17 74/week @ 2024-08-24 9/week @ 2024-08-31 7/week @ 2024-09-21 272/week @ 2024-09-28 332/week @ 2024-10-05 163/week @ 2024-10-12 165/week @ 2024-10-19 35/week @ 2024-10-26 402/week @ 2024-11-02 124/week @ 2024-11-09

815 downloads per month
Used in br-addon

MIT license

82KB
2K SLoC

br-web-server 网络服务


License Crates.io Version

macOS 安装SSL证书

brew install mkcert
brew install nss
mkcert -install
mkcert -key-file ssl/127.0.0.1.key -cert-file ssl/127.0.0.1.pem localhost 127.0.0.1
{
    "ip": "0.0.0.0",
    "port": 8080,
    "domain": "127.0.0.1",
    "public": "/public",
    "runtime": "/runtime",
    "cors": {
        "allow_origin": [],
        "allow_methods": "GET,POST",
        "allow_headers": "content-type",
        "allow_credentials": true,
        "expose_headers": "content-disposition",
        "max_age": 1800
    },
    "ssl": false,
    "ssl_pkey": "/ssl/server.key",
    "ssl_certs": "/ssl/server.pem"
}

Dependencies

~3.5–5MB
~103K SLoC