日志方法增加异步与同步的方法

This commit is contained in:
2025-11-30 21:01:47 +08:00
parent fd37c5c301
commit de8fc13f18
8 changed files with 310 additions and 45 deletions

View File

@@ -265,7 +265,14 @@ type Storage interface {
#### 响应
直接返回文件内容设置适当的Content-Type
- **成功**直接返回文件内容(二进制)设置适当的Content-Type
- **错误**返回标准HTTP错误状态码和错误消息文本格式
- `400 Bad Request`: 缺少必需参数
- `404 Not Found`: 文件不存在
- `405 Method Not Allowed`: 请求方法不正确
- `500 Internal Server Error`: 系统错误
**注意**`ProxyHandler` 返回的是文件内容二进制而不是JSON响应。错误时使用标准HTTP状态码保持与文件响应的一致性。
### 辅助函数