Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TransferEncoding (0.13 sec)

  1. src/net/http/request.go

    	// also treated as unknown.
    	ContentLength int64
    
    	// TransferEncoding lists the transfer encodings from outermost to
    	// innermost. An empty list denotes the "identity" encoding.
    	// TransferEncoding can usually be ignored; chunked encoding is
    	// automatically added and removed as necessary when sending and
    	// receiving requests.
    	TransferEncoding []string
    
    	// Close indicates whether to close the connection after
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  2. src/net/http/httputil/reverseproxy_test.go

    		if r.Method == "GET" && r.FormValue("mode") == "hangup" {
    			c, _, _ := w.(http.Hijacker).Hijack()
    			c.Close()
    			return
    		}
    		if len(r.TransferEncoding) > 0 {
    			t.Errorf("backend got unexpected TransferEncoding: %v", r.TransferEncoding)
    		}
    		if r.Header.Get("X-Forwarded-For") == "" {
    			t.Errorf("didn't get X-Forwarded-For header")
    		}
    		if c := r.Header.Get("Connection"); c != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
Back to top