Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for WroteRequest (0.22 sec)

  1. src/net/http/httptrace/trace.go

    	// server before writing the request body.
    	Wait100Continue func()
    
    	// WroteRequest is called with the result of writing the
    	// request and any body. It may be called multiple times
    	// in the case of retried requests.
    	WroteRequest func(WroteRequestInfo)
    }
    
    // WroteRequestInfo contains information provided to the WroteRequest
    // hook.
    type WroteRequestInfo struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. api/go1.7.txt

    pkg net/http/httptrace, type ClientTrace struct, Wait100Continue func()
    pkg net/http/httptrace, type ClientTrace struct, WroteHeaders func()
    pkg net/http/httptrace, type ClientTrace struct, WroteRequest func(WroteRequestInfo)
    pkg net/http/httptrace, type DNSDoneInfo struct
    pkg net/http/httptrace, type DNSDoneInfo struct, Addrs []net.IPAddr
    pkg net/http/httptrace, type DNSDoneInfo struct, Coalesced bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 28 15:08:11 UTC 2016
    - 13.6K bytes
    - Viewed (0)
  3. src/net/http/transport.go

    // will wait to see the Request's Body.Write result after getting a
    // response from the server. See comments in (*persistConn).wroteRequest.
    //
    // In tests, we set this to a large value to avoid flakiness from inconsistent
    // recycling of connections.
    var maxWriteWaitBeforeConnReuse = 50 * time.Millisecond
    
    // wroteRequest is a check before recycling a connection that the previous write
    // (from writeLoop above) happened and was successful.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  4. src/net/http/request.go

    func (r *Request) write(w io.Writer, usingProxy bool, extraHeaders Header, waitForContinue func() bool) (err error) {
    	trace := httptrace.ContextClientTrace(r.Context())
    	if trace != nil && trace.WroteRequest != nil {
    		defer func() {
    			trace.WroteRequest(httptrace.WroteRequestInfo{
    				Err: err,
    			})
    		}()
    	}
    	closed := false
    	defer func() {
    		if closed {
    			return
    		}
    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

    		},
    		WroteHeaders: func() {
    			logf("WroteHeaders")
    		},
    		Wait100Continue: func() { logf("Wait100Continue") },
    		Got100Continue:  func() { logf("Got100Continue") },
    		WroteRequest: func(e httptrace.WroteRequestInfo) {
    			logf("WroteRequest: %+v", e)
    			gotWroteReqEvent <- struct{}{}
    		},
    	}
    	if mode == http2Mode {
    		trace.TLSHandshakeStart = func() { logf("tls handshake start") }
    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. src/net/http/h2_bundle.go

    	if trace != nil && trace.Wait100Continue != nil {
    		trace.Wait100Continue()
    	}
    }
    
    func http2traceWroteRequest(trace *httptrace.ClientTrace, err error) {
    	if trace != nil && trace.WroteRequest != nil {
    		trace.WroteRequest(httptrace.WroteRequestInfo{Err: err})
    	}
    }
    
    func http2traceFirstResponseByte(trace *httptrace.ClientTrace) {
    	if trace != nil && trace.GotFirstResponseByte != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"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},
    		{"DNSDoneInfo.Coalesced", Field, 7},
    		{"DNSDoneInfo.Err", 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