Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for WroteHeaderField (0.37 sec)

  1. src/net/http/header.go

    					headerSorterPool.Put(sorter)
    					return err
    				}
    			}
    			if trace != nil && trace.WroteHeaderField != nil {
    				formattedVals = append(formattedVals, v)
    			}
    		}
    		if trace != nil && trace.WroteHeaderField != nil {
    			trace.WroteHeaderField(kv.key, formattedVals)
    			formattedVals = nil
    		}
    	}
    	headerSorterPool.Put(sorter)
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. src/net/http/transfer.go

    			return err
    		}
    		if trace != nil && trace.WroteHeaderField != nil {
    			trace.WroteHeaderField("Content-Length", []string{strconv.FormatInt(t.ContentLength, 10)})
    		}
    	} else if chunked(t.TransferEncoding) {
    		if _, err := io.WriteString(w, "Transfer-Encoding: chunked\r\n"); err != nil {
    			return err
    		}
    		if trace != nil && trace.WroteHeaderField != nil {
    			trace.WroteHeaderField("Transfer-Encoding", []string{"chunked"})
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  3. src/net/http/httptrace/trace.go

    	// failure.
    	TLSHandshakeDone func(tls.ConnectionState, error)
    
    	// WroteHeaderField is called after the Transport has written
    	// each request header. At the time of this call the values
    	// might be buffered and not yet written to the network.
    	WroteHeaderField func(key string, value []string)
    
    	// WroteHeaders is called after the Transport has written
    	// all request headers.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  4. src/net/http/request.go

    	if err != nil {
    		return err
    	}
    
    	// Header lines
    	_, err = fmt.Fprintf(w, "Host: %s\r\n", host)
    	if err != nil {
    		return err
    	}
    	if trace != nil && trace.WroteHeaderField != nil {
    		trace.WroteHeaderField("Host", []string{host})
    	}
    
    	// Use the defaultUserAgent unless the Header contains one, which
    	// may be blank to not send the header.
    	userAgent := defaultUserAgent
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  5. src/net/http/transport_test.go

    	} else {
    		wantOnce("PutIdleConn = <nil>")
    		wantOnce("WroteHeaderField: User-Agent: [Go-http-client/1.1]")
    		// TODO(meirf): issue 19761. Make these agnostic to h1/h2. (These are not h1 specific, but the
    		// WroteHeaderField hook is not yet implemented in h2.)
    		wantOnce(fmt.Sprintf("WroteHeaderField: Host: [dns-is-faked.golang:%s]", port))
    		wantOnce(fmt.Sprintf("WroteHeaderField: Content-Length: [%d]", len(body)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  6. api/go1.11.txt

    pkg net/http, type Transport struct, MaxConnsPerHost int
    pkg net/http/httptrace, type ClientTrace struct, Got1xxResponse func(int, textproto.MIMEHeader) error
    pkg net/http/httptrace, type ClientTrace struct, WroteHeaderField func(string, []string)
    pkg net/http/httputil, type ReverseProxy struct, ErrorHandler func(http.ResponseWriter, *http.Request, error)
    pkg os, const ModeIrregular = 524288
    pkg os, const ModeIrregular FileMode
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 22 03:48:56 UTC 2018
    - 25K bytes
    - Viewed (0)
  7. src/net/http/h2_bundle.go

    	}
    }
    
    func http2traceHasWroteHeaderField(trace *httptrace.ClientTrace) bool {
    	return trace != nil && trace.WroteHeaderField != nil
    }
    
    func http2traceWroteHeaderField(trace *httptrace.ClientTrace, k, v string) {
    	if trace != nil && trace.WroteHeaderField != nil {
    		trace.WroteHeaderField(k, []string{v})
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"ClientTrace.PutIdleConn", Field, 7},
    		{"ClientTrace.TLSHandshakeDone", Field, 8},
    		{"ClientTrace.TLSHandshakeStart", Field, 8},
    		{"ClientTrace.Wait100Continue", Field, 7},
    		{"ClientTrace.WroteHeaderField", Field, 11},
    		{"ClientTrace.WroteHeaders", Field, 7},
    		{"ClientTrace.WroteRequest", Field, 7},
    		{"ContextClientTrace", Func, 7},
    		{"DNSDoneInfo", Type, 7},
    		{"DNSDoneInfo.Addrs", Field, 7},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top