Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for Req (0.38 sec)

  1. src/net/http/transport_test.go

    		fetch := func(n int) string {
    			req := new(Request)
    			var err error
    			req.URL, err = url.Parse(ts.URL)
    			if err != nil {
    				t.Fatalf("URL parse error: %v", err)
    			}
    			req.Method = "GET"
    			req.Proto = "HTTP/1.1"
    			req.ProtoMajor = 1
    			req.ProtoMinor = 1
    			req.Close = reqClose
    
    			res, err := c.Do(req)
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  2. src/net/http/serve_test.go

    	handler := func(res ResponseWriter, req *Request) {
    		reqNum++
    		ch <- req
    	}
    
    	go func() {
    		servech <- Serve(listener, HandlerFunc(handler))
    	}()
    
    	var req *Request
    	req = <-ch
    	if req == nil {
    		t.Fatal("Got nil first request.")
    	}
    	if req.Method != "POST" {
    		t.Errorf("For request #1's method, got %q; expected %q",
    			req.Method, "POST")
    	}
    
    	req = <-ch
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  3. cmd/object-handlers_test.go

    		if testCase.removeAuthHeader {
    			req.Header.Del("Authorization")
    		}
    		switch testCase.fault {
    		case malformedEncoding:
    			req, err = malformChunkSizeSigV4(req, testCase.chunkSize-1)
    		case signatureMismatch:
    			req, err = malformDataSigV4(req, 'z')
    		case unexpectedEOF:
    			req, err = truncateChunkByHalfSigv4(req)
    		case tooBigDecodedLength:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 161.9K bytes
    - Viewed (0)
  4. src/net/http/server.go

    func (h initALPNRequest) ServeHTTP(rw ResponseWriter, req *Request) {
    	if req.TLS == nil {
    		req.TLS = &tls.ConnectionState{}
    		*req.TLS = h.c.ConnectionState()
    	}
    	if req.Body == nil {
    		req.Body = NoBody
    	}
    	if req.RemoteAddr == "" {
    		req.RemoteAddr = h.c.RemoteAddr().String()
    	}
    	h.h.ServeHTTP(rw, req)
    }
    
    // loggingConn is used for debugging.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbFile.java

            if( log.level >= 3 )
                log.println( "doFindFirstNext: " + req.path );
    
            send( req, resp );
    
            sid = resp.sid;
            req = new Trans2FindNext2( sid, resp.resumeKey, resp.lastName );
    
            /* The only difference between first2 and next2 responses is subCommand
             * so let's recycle the response object.
             */
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Mon Mar 13 12:00:57 UTC 2023
    - 107.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/apiserver_test.go

    		if err != nil {
    			t.Fatal(err)
    		}
    		u.RawQuery = test.params.Encode()
    		req := &http.Request{Method: "GET", URL: u}
    		req.Header = http.Header{}
    		req.Header.Set("Accept", test.accept)
    		req.Header.Set("User-Agent", test.userAgent)
    		resp, err := http.DefaultClient.Do(req)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if resp.StatusCode != http.StatusOK {
    			t.Fatal(err)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 20:15:22 UTC 2023
    - 158.7K bytes
    - Viewed (0)
  7. cluster/gce/util.sh

        rm -f "kubelet.csr"
    
        # Make a superuser client cert with subject "O=system:masters, CN=kubecfg"
        ./easyrsa --dn-mode=org \
          --req-cn=kubecfg --req-org=system:masters \
          --req-c= --req-st= --req-city= --req-email= --req-ou= \
          build-client-full kubecfg nopass) &>"${cert_create_debug_output}" || true
      local output_file_missing=0
      local output_file
      for output_file in \
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 21:47:17 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  8. src/database/sql/sql.go

    	if db.maxOpen > 0 && db.numOpen >= db.maxOpen {
    		// Make the connRequest channel. It's buffered so that the
    		// connectionOpener doesn't block while waiting for the req to be read.
    		req := make(chan connRequest, 1)
    		delHandle := db.connRequests.Add(req)
    		db.waitCount++
    		db.mu.Unlock()
    
    		waitStart := nowFunc()
    
    		// Timeout the connection request with the context.
    		select {
    		case <-ctx.Done():
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

      // No inputs required for constants and ShapeOp.
      if (matchPattern(op, m_Constant()) || isa<TF::ShapeOp>(op)) return success();
    
      ValuePort req = ComputeInputComponentFor(op, port);
      if (req.IsValid()) {
        if (!has_been_computed(req)) inputs->push_back(req);
        return success();
      }
    
      return failure();
    }
    
    // Computes the output produced by ValuePort using the query function of
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  10. cmd/server_test.go

    		"Retry-After",
    		"X-Amz-Bucket-Region",
    		"Expires",
    		"X-Amz*",
    		"X-Amz*",
    		"*",
    	}
    	expectedMap.Set("Vary", "Origin")
    
    	req, _ := http.NewRequest(http.MethodOptions, s.endPoint, nil)
    	req.Header.Set("Origin", "http://foobar.com")
    	res, err := s.client.Do(req)
    	if err != nil {
    		c.Fatal(err)
    	}
    
    	for k := range expectedMap {
    		if v, ok := res.Header[k]; !ok {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
Back to top