type net/http.readTrackingBody
10 uses
net/http (current package)
transfer.go#L425: if r, ok := t.Body.(*readTrackingBody); ok {
transfer.go#L1090: if r, ok := r.(*readTrackingBody); ok {
transport.go#L624: type readTrackingBody struct {
transport.go#L630: func (r *readTrackingBody) Read(data []byte) (int, error) {
transport.go#L635: func (r *readTrackingBody) Close() error {
transport.go#L649: newReq.Body = &readTrackingBody{ReadCloser: req.Body}
transport.go#L658: if req.Body == nil || req.Body == NoBody || (!req.Body.(*readTrackingBody).didRead && !req.Body.(*readTrackingBody).didClose) {
transport.go#L661: if !req.Body.(*readTrackingBody).didClose {
transport.go#L672: newReq.Body = &readTrackingBody{ReadCloser: body}
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |