Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for shouldSendChunkedRequestBody (0.27 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)
  2. src/net/http/request.go

    // method is one that typically does not involve a request body.
    // This is used by the Transport (via
    // transferWriter.shouldSendChunkedRequestBody) to determine whether
    // we try to test-read a byte from a non-nil Request.Body when
    // Request.outgoingLength() returns -1. See the comments in
    // shouldSendChunkedRequestBody.
    func requestMethodUsuallyLacksBody(method string) bool {
    	switch method {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
Back to top