MCPcopy
hub / github.com/valyala/fasthttp / closeBodyStream

Method closeBodyStream

http.go:2350–2357  ·  view source on GitHub ↗
(wErr error)

Source from the content-addressed store, hash-verified

2348}
2349
2350func (resp *Response) closeBodyStream(wErr error) error {
2351 if resp.bodyStream == nil {
2352 return nil
2353 }
2354 err := closeBodyStreamReader(resp.bodyStream, wErr)
2355 resp.bodyStream = nil
2356 return err
2357}
2358
2359// String returns request representation.
2360//

Callers 11

CloseBodyStreamMethod · 0.95
BodyMethod · 0.95
BodyWriteToMethod · 0.95
AppendBodyMethod · 0.95
AppendBodyStringMethod · 0.95
SetBodyMethod · 0.95
SetBodyStringMethod · 0.95
ResetBodyMethod · 0.95
ReleaseBodyMethod · 0.95
SwapBodyMethod · 0.95
writeBodyStreamMethod · 0.95

Calls 1

closeBodyStreamReaderFunction · 0.85

Tested by

no test coverage detected