MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / addError

Method addError

internal/nodes/http_request.go:1978–1983  ·  view source on GitHub ↗

添加错误信息

(err error)

Source from the content-addressed store, hash-verified

1976
1977// 添加错误信息
1978func (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
1986func (this *HTTPRequest) bytePool(contentLength int64) *utils.BytePool {

Callers 5

findIndexFileMethod · 0.95
doWebsocketMethod · 0.95
doFastcgiMethod · 0.95
write50xMethod · 0.95
doOriginRequestMethod · 0.95

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected