ohyeah521分享一个vibe coding了一个http服务器,支持上传,下载 中发帖

先看效果图: 
 [image] 
依赖安装 
pip install aiohttp 
启动服务 
python server.py 
访问 http://localhost:8080
客户端示例 

单文件下载(普通)

curl -O http://localhost:8080/download/test.txt 
2. 断点续传下载 
从第 1024 字节开始下载
curl -HRange: bytes=1024--o test.txt http://localhost:8080/download/test.txt 
3./批量文件上传 
curl -F “file=@a.txt” http://localhost:8080/upload 
curl -F “files=@a.txt” -F “files=@b.jpg” http://localhost:8080/up...
 
 
Back to Top