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

Method Close

internal/nodes/http_writer.go:959–969  ·  view source on GitHub ↗

Close 关闭

()

Source from the content-addressed store, hash-verified

957
958// Close 关闭
959func (this *HTTPWriter) Close() {
960 this.finishWebP()
961 this.finishRequest()
962 this.finishCache()
963 this.finishCompression()
964
965 // 统计
966 if this.sentBodyBytes == 0 {
967 this.sentBodyBytes = this.counterWriter.TotalBytes()
968 }
969}
970
971// Hijack Hijack
972func (this *HTTPWriter) Hijack() (conn net.Conn, buf *bufio.ReadWriter, err error) {

Callers

nothing calls this directly

Calls 5

finishWebPMethod · 0.95
finishRequestMethod · 0.95
finishCacheMethod · 0.95
finishCompressionMethod · 0.95
TotalBytesMethod · 0.45

Tested by

no test coverage detected