Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 210 for Req (0.06 seconds)

  1. cmd/jwt_test.go

    		t.Fatalf("unable get token %s", err)
    	}
    	testCases := []struct {
    		req         *http.Request
    		expectedErr error
    	}{
    		// Set valid authorization header.
    		{
    			req: &http.Request{
    				Header: http.Header{
    					"Authorization": []string{token},
    				},
    			},
    			expectedErr: nil,
    		},
    		// No authorization header.
    		{
    			req: &http.Request{
    				Header: http.Header{},
    			},
    			expectedErr: errNoAuthToken,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  2. src/main/java/jcifs/http/NtlmHttpFilter.java

            final HttpServletRequest req = (HttpServletRequest) request;
            final HttpServletResponse resp = (HttpServletResponse) response;
            NtlmPasswordAuthentication ntlm = negotiate(req, resp, false);
    
            if (ntlm == null) {
                return;
            }
    
            chain.doFilter(new NtlmHttpServletRequest(req, ntlm), response);
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.3K bytes
    - Click Count (0)
  3. android/guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

         */
        return (int) Math.pow(a, 1.0 / concentration);
      }
    
      @AfterExperiment
      void tearDown() {
        double req = requests.get();
        double hit = req - misses.get();
    
        // Currently, this is going into /dev/null, but I'll fix that
        System.out.println("hit rate: " + hit / req);
      }
    
      // for proper distributions later:
      // import JSci.maths.statistics.ProbabilityDistribution;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 3.4K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/HostnameVerifierTest.kt

        // cat cert.cnf
        // [req]
        // distinguished_name=distinguished_name
        // req_extensions=req_extensions
        // x509_extensions=x509_extensions
        // [distinguished_name]
        // [req_extensions]
        // [x509_extensions]
        // subjectAltName=DNS:localhost.localdomain,DNS:localhost,IP:127.0.0.1
        //
        // $ openssl req -x509 -nodes -days 36500 -subj '/CN=localhost' -config ./cert.cnf \
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 40.4K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb/SmbTreeImpl.java

                        if (transport.isSMB2()) {
                            final Smb2TreeConnectRequest req = new Smb2TreeConnectRequest(sess.getConfig(), unc);
                            if (andx != null) {
                                req.chain((ServerMessageBlock2) andx);
                            }
                            request = req;
                        } else {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 30K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb/SmbTransportImpl.java

         * @throws IOException
         */
        private int negotiateWrite(final CommonServerMessageBlockRequest req, final boolean setmid) throws IOException {
            if (setmid) {
                makeKey(req);
            } else {
                req.setMid(0);
                this.mid.set(1);
            }
            final int n = req.encode(this.sbuf, 4);
            Encdec.enc_uint32be(n & 0xFFFF, this.sbuf, 0); /* 4 byte ssn msg header */
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 69.8K bytes
    - Click Count (0)
  7. src/test/java/jcifs/http/NetworkExplorerTest.java

                public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
                    // Check authentication
                    HttpSession session = req.getSession(false);
                    if (session != null && session.getAttribute("npa-workgroup") != null) {
                        // Authentication successful - mock file operation
                        doFile(req, resp, smbFile);
                    } else {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 04:51:33 GMT 2025
    - 21.2K bytes
    - Click Count (0)
  8. cmd/generic-handlers.go

    // like healthCheck request
    func guessIsHealthCheckReq(req *http.Request) bool {
    	if req == nil {
    		return false
    	}
    	aType := getRequestAuthType(req)
    	return aType == authTypeAnonymous && (req.Method == http.MethodGet || req.Method == http.MethodHead) &&
    		(req.URL.Path == healthCheckPathPrefix+healthCheckLivenessPath ||
    			req.URL.Path == healthCheckPathPrefix+healthCheckReadinessPath ||
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 20.7K bytes
    - Click Count (1)
  9. internal/config/lambda/target/webhook.go

    	tokens := strings.Fields(target.args.AuthToken)
    	switch len(tokens) {
    	case 2:
    		req.Header.Set("Authorization", target.args.AuthToken)
    	case 1:
    		req.Header.Set("Authorization", "Bearer "+target.args.AuthToken)
    	}
    
    	req.Header.Set("Content-Type", "application/json")
    
    	return target.httpClient.Do(req)
    }
    
    // Close the target. Will cancel all active requests.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon Jul 08 21:39:49 GMT 2024
    - 6.7K bytes
    - Click Count (0)
  10. cmd/url_test.go

    	b.ResetTimer()
    
    	if err := req.ParseForm(); err != nil {
    		b.Fatal(err)
    	}
    
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			req.Form.Get("uploadId")
    		}
    	})
    
    	// Benchmark ends here. Stop timer.
    	b.StopTimer()
    }
    
    // BenchmarkURLQuery - benchmark URL memory allocations
    func BenchmarkURLQuery(b *testing.B) {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Nov 16 17:28:29 GMT 2021
    - 2K bytes
    - Click Count (0)
Back to Top