BodyStorage 请求体存储接口
| 12 | |
| 13 | // BodyStorage 请求体存储接口 |
| 14 | type BodyStorage interface { |
| 15 | io.ReadSeeker |
| 16 | io.Closer |
| 17 | // Bytes 获取全部内容 |
| 18 | Bytes() ([]byte, error) |
| 19 | // Size 获取数据大小 |
| 20 | Size() int64 |
| 21 | // IsDisk 是否是磁盘存储 |
| 22 | IsDisk() bool |
| 23 | } |
| 24 | |
| 25 | // ErrStorageClosed 存储已关闭错误 |
| 26 | var ErrStorageClosed = fmt.Errorf("body storage is closed") |
no outgoing calls
no test coverage detected