日志方法增加异步与同步的方法
This commit is contained in:
@@ -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状态码,保持与文件响应的一致性。
|
||||
|
||||
### 辅助函数
|
||||
|
||||
|
||||
Reference in New Issue
Block a user