Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ErrSkipAltProtocol (0.26 sec)

  1. api/go1.6.txt

    pkg net/http, type Transport struct, ExpectContinueTimeout time.Duration
    pkg net/http, type Transport struct, TLSNextProto map[string]func(string, *tls.Conn) RoundTripper
    pkg net/http, var ErrSkipAltProtocol error
    pkg net/http/httptest, method (*ResponseRecorder) WriteString(string) (int, error)
    pkg net/http/httputil, type BufferPool interface { Get, Put }
    pkg net/http/httputil, type BufferPool interface, Get() []uint8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 13 23:40:13 UTC 2016
    - 12.9K bytes
    - Viewed (0)
  2. src/net/http/transport.go

    		// timeout, just as the client was writing a request.
    		return true
    	}
    	return false // conservatively
    }
    
    // ErrSkipAltProtocol is a sentinel error value defined by Transport.RegisterProtocol.
    var ErrSkipAltProtocol = errors.New("net/http: skip alternate protocol")
    
    // RegisterProtocol registers a new protocol with scheme.
    // The [Transport] will pass requests using the given scheme to rt.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  3. src/net/http/transport_test.go

    }
    
    type roundTripFunc func(r *Request) (*Response, error)
    
    func (f roundTripFunc) RoundTrip(r *Request) (*Response, error) { return f(r) }
    
    // Issue 32441: body is not reset after ErrSkipAltProtocol
    func TestIssue32441(t *testing.T) { run(t, testIssue32441, []testMode{http1Mode}) }
    func testIssue32441(t *testing.T, mode testMode) {
    	ts := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  4. src/net/http/h2_bundle.go

    func (rt http2noDialH2RoundTripper) RoundTrip(req *Request) (*Response, error) {
    	res, err := rt.http2Transport.RoundTrip(req)
    	if http2isNoCachedConnError(err) {
    		return nil, ErrSkipAltProtocol
    	}
    	return res, err
    }
    
    func (t *http2Transport) idleConnTimeout() time.Duration {
    	// to keep things backwards compatible, we use non-zero values of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"ErrNoLocation", Var, 0},
    		{"ErrNotMultipart", Var, 0},
    		{"ErrNotSupported", Var, 0},
    		{"ErrSchemeMismatch", Var, 21},
    		{"ErrServerClosed", Var, 8},
    		{"ErrShortBody", Var, 0},
    		{"ErrSkipAltProtocol", Var, 6},
    		{"ErrUnexpectedTrailer", Var, 0},
    		{"ErrUseLastResponse", Var, 7},
    		{"ErrWriteAfterFlush", Var, 0},
    		{"Error", Func, 0},
    		{"FS", Func, 16},
    		{"File", Type, 0},
    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