net/http.transferWriter.Body (field)
22 uses
net/http (current package)
transfer.go#L60: Body io.Reader
transfer.go#L90: t.Body = rr.Body
transfer.go#L103: if t.ContentLength != 0 && !isKnownInMemoryReader(t.Body) {
transfer.go#L113: t.Body = rr.Body
transfer.go#L126: t.Body = nil
transfer.go#L131: if !atLeastHTTP11 || t.Body == nil {
transfer.go#L136: } else if t.Body == nil { // no chunking, no body
transfer.go#L170: if t.ContentLength >= 0 || t.Body == nil { // redundant checks; caller did them
transfer.go#L181: return t.Body != nil
transfer.go#L214: }(t.Body)
transfer.go#L221: t.Body = nil
transfer.go#L225: t.Body = io.MultiReader(&byteReader{b: rres.b}, errorReader{rres.err})
transfer.go#L227: t.Body = io.MultiReader(&byteReader{b: rres.b}, t.Body)
transfer.go#L230: t.Body = errorReader{rres.err}
transfer.go#L237: t.Body = io.MultiReader(finishAsyncByteRead{t}, t.Body)
transfer.go#L349: if t.Body != nil {
transfer.go#L422: if reflect.TypeOf(t.Body) == nopCloserType {
transfer.go#L423: return reflect.ValueOf(t.Body).Field(0).Interface().(io.Reader)
transfer.go#L425: if r, ok := t.Body.(*readTrackingBody); ok {
transfer.go#L429: return t.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. |