net/http.Request.Body (field)
102 uses
net/http (current package)
client.go#L664: req.Body, err = ireq.GetBody()
h2_bundle.go#L5431: st.body = req.Body.(*http2requestBody).pipe // may be nil
h2_bundle.go#L5603: req.Body.(*http2requestBody).pipe = &http2pipe{
h2_bundle.go#L5682: Body: body,
h2_bundle.go#L7031: if req.Body == nil || req.Body == NoBody {
h2_bundle.go#L7044: newReq.Body = body
h2_bundle.go#L7521: if req.Body == nil || req.Body == NoBody {
h2_bundle.go#L7555: body := req.Body
h2_bundle.go#L7614: req.Body.Close() // per RoundTripper contract
h2_bundle.go#L8412: if cs.req.Body != nil {
h2_bundle.go#L9114: resc <- cs.writeRequestBody(body, cs.req.Body)
request.go#L181: Body io.ReadCloser
request.go#L490: return multipart.NewReader(r.Body, boundary), nil
request.go#L884: Body: rc,
request.go#L926: req.Body = NoBody
request.go#L1188: if r.Body == nil {
request.go#L1201: var reader io.Reader = r.Body
request.go#L1203: if _, ok := r.Body.(*maxBytesReader); !ok {
request.go#L1205: reader = io.LimitReader(r.Body, maxFormSize+1)
request.go#L1402: if r.Body == nil {
request.go#L1405: return r.Body.Close()
request.go#L1409: if r.Body == nil || r.Body == NoBody || r.GetBody != nil {
request.go#L1427: if r.Body == nil || r.Body == NoBody {
server.go#L1028: if body, ok := req.Body.(*body); ok {
server.go#L1041: reqBody: req.Body,
server.go#L1333: if ecr, ok := w.req.Body.(*expectContinueReader); ok && !ecr.sawEOF.isSet() {
server.go#L1347: switch bdy := w.req.Body.(type) {
server.go#L1673: body, ok := w.req.Body.(*body)
server.go#L1929: req.Body = &expectContinueReader{readCloser: req.Body, resp: w}
server.go#L1939: if requestBodyRemains(req.Body) {
server.go#L1940: registerOnHitEOF(req.Body, w.conn.r.startBackgroundRead)
server.go#L3428: mb := MaxBytesReader(w, r.Body, 4<<10)
server.go#L3453: if req.Body == nil {
server.go#L3454: req.Body = NoBody
transfer.go#L82: if rr.ContentLength != 0 && rr.Body == nil {
transfer.go#L90: t.Body = rr.Body
transfer.go#L91: t.BodyCloser = rr.Body
transfer.go#L579: rr.Body = t.Body
transport.go#L645: if req.Body == nil || req.Body == NoBody {
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}
transport.go#L2565: if req.ProtoAtLeast(1, 1) && req.Body != nil && req.expectsContinue() {
net/http/httptest
httptest.go#L66: req.Body = rc
httptest.go#L68: req.Body = io.NopCloser(body)
net/http/httputil
dump.go#L65: if req.Body == nil || req.Body == http.NoBody {
dump.go#L78: save := req.Body
dump.go#L83: req.Body = io.NopCloser(io.LimitReader(neverEnding('x'), contentLength))
dump.go#L88: save, req.Body, err = drainBody(req.Body)
dump.go#L135: io.Copy(io.Discard, req.Body)
dump.go#L136: req.Body.Close()
dump.go#L148: req.Body = save
dump.go#L220: save := req.Body
dump.go#L221: if !body || req.Body == nil {
dump.go#L222: req.Body = nil
dump.go#L224: save, req.Body, err = drainBody(req.Body)
dump.go#L272: if req.Body != nil {
dump.go#L277: _, err = io.Copy(dest, req.Body)
dump.go#L284: req.Body = save
persist.go#L155: sc.lastbody = req.Body
reverseproxy.go#L235: outreq.Body = nil // Issue 16036: nil Body for http.Transport retries
github.com/aws/aws-sdk-go/aws/client
logger.go#L68: r.SetReaderBody(aws.ReadSeekCloser(r.HTTPRequest.Body))
github.com/aws/aws-sdk-go/aws/corehandlers
handlers.go#L95: if request.NoBody == r.HTTPRequest.Body {
handlers.go#L104: reqCopy.Body = nil
github.com/aws/aws-sdk-go/aws/request
http_request.go#L14: req.Body = body
request.go#L248: if !aws.IsReaderSeekable(r.Body) && r.HTTPRequest.Body != NoBody {
request_1_8.go#L34: r.HTTPRequest.Body = body
github.com/aws/aws-sdk-go/aws/signer/v4
v4.go#L365: r.Body = reader
go.opencensus.io/plugin/ochttp
client_stats.go#L48: if req.Body == nil {
server.go#L133: if r.Body == nil {
server.go#L159: if r.Body == nil {
golang.org/x/net/http2
server.go#L1876: st.body = req.Body.(*requestBody).pipe // may be nil
server.go#L2048: req.Body.(*requestBody).pipe = &pipe{
server.go#L2127: Body: body,
transport.go#L528: if req.Body == nil || req.Body == http.NoBody {
transport.go#L541: newReq.Body = body
transport.go#L1018: if req.Body == nil || req.Body == http.NoBody {
transport.go#L1052: body := req.Body
transport.go#L1111: req.Body.Close() // per RoundTripper contract
transport.go#L1909: if cs.req.Body != nil {
transport.go#L2610: resc <- cs.writeRequestBody(body, cs.req.Body)
golang.org/x/oauth2
transport.go#L34: if req.Body != nil {
transport.go#L37: req.Body.Close()
google.golang.org/api/internal/gensupport
send.go#L152: req.Body, errBody = req.GetBody()
google.golang.org/grpc/internal/transport
handler_server.go#L395: n, err := req.Body.Read(buf)
handler_server.go#L420: req.Body.Close()
 |
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. |