Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for shouldSendChunkedRequestBody (0.24 sec)

  1. src/net/http/transfer.go

    		t.Header = rr.Header
    		t.Trailer = rr.Trailer
    		t.Body = rr.Body
    		t.BodyCloser = rr.Body
    		t.ContentLength = rr.outgoingLength()
    		if t.ContentLength < 0 && len(t.TransferEncoding) == 0 && t.shouldSendChunkedRequestBody() {
    			t.TransferEncoding = []string{"chunked"}
    		}
    		// If there's a body, conservatively flush the headers
    		// to any bufio.Writer we're writing to, just in case
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 31.1K bytes
    - Viewed (0)
Back to top