HttpServerOnAndroid icon indicating copy to clipboard operation
HttpServerOnAndroid copied to clipboard

在Android下几种实现HttpServer的方法 (以通过浏览器浏览sdcard内容为例说明)

Results 3 HttpServerOnAndroid issues
Sort by recently updated
recently updated
newest added

MIME未自定义就不能直接打开,而是下载(例如:你就没有定义视频),那么多MIME你也定义不过来,其实有现成的API: `String mime = URLConnection.getFileNameMap().getContentTypeFor(file.getCanonicalPath());` https://github.com/gpfduoduo/HttpServerOnAndroid/blob/master/app/src/main/java/com/guo/duoduo/httpserver/http/FileBrowseHandler.java#L129

和FTP(https://github.com/sonichy/FTPServe_Android)一样,文件不能直接打开,而是下载。 我是想在 Android 平台替代 termux 运行 python -m http.server. 好像不加 Content-disposition 头就行了。 https://github.com/gpfduoduo/HttpServerOnAndroid/blob/5e135fa1b4791e4bc7c8460e046812b9f37a4dd3/app/src/main/java/com/guo/duoduo/httpserver/http/FileBrowseHandler.java#L138