添加错误信息
(err error)
| 1976 | |
| 1977 | // 添加错误信息 |
| 1978 | func (this *HTTPRequest) addError(err error) { |
| 1979 | if err == nil { |
| 1980 | return |
| 1981 | } |
| 1982 | this.errors = append(this.errors, err.Error()) |
| 1983 | } |
| 1984 | |
| 1985 | // 计算合适的buffer size |
| 1986 | func (this *HTTPRequest) bytePool(contentLength int64) *utils.BytePool { |
no test coverage detected