Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 6841 - 6850 of 7,303 for recur2 (0.07 seconds)

  1. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

        public void testNormalAuthentication() throws Exception {
            // Normal authentication should be allowed
            assertTrue(rateLimiter.checkAttempt("user1", "192.168.1.1"), "First attempt should be allowed");
    
            // Record success
            rateLimiter.recordSuccess("user1", "192.168.1.1");
    
            // Should still be allowed
            assertTrue(rateLimiter.checkAttempt("user1", "192.168.1.1"), "After success should be allowed");
        }
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  2. docs/zh/docs/tutorial/handling-errors.md

    ### 触发 `HTTPException`
    
    `HTTPException` 是额外包含了和 API 有关数据的常规 Python 异常。
    
    因为是 Python 异常,所以不能 `return`,只能 `raise`。
    
    如在调用*路径操作函数*里的工具函数时,触发了 `HTTPException`,FastAPI 就不再继续执行*路径操作函数*中的后续代码,而是立即终止请求,并把 `HTTPException` 的 HTTP 错误发送至客户端。
    
    在介绍依赖项与安全的章节中,您可以了解更多用 `raise` 异常代替 `return` 值的优势。
    
    本例中,客户端用 `ID` 请求的 `item` 不存在时,触发状态码为 `404` 的异常:
    
    {* ../../docs_src/handling_errors/tutorial001.py hl[11] *}
    
    ### 响应结果
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetElementSetTester.java

       * that the test of {@code Multisets.forSet()} can suppress them.
       */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public static List<Method> getElementSetDuplicateInitializingMethods() {
        return asList(
            getMethod(
                MultisetElementSetTester.class, "testElementSetRemoveDuplicatePropagatesToMultiset"));
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 4.3K bytes
    - Click Count (0)
  4. impl/maven-core/src/test/java/org/apache/maven/plugin/internal/MavenPluginValidatorTest.java

    /**
     */
    class MavenPluginValidatorTest extends AbstractCoreMavenComponentTestCase {
        @Inject
        private MavenPluginValidator mavenPluginValidator;
    
        protected String getProjectsDirectory() {
            return "src/test/projects/default-maven";
        }
    
        @Test
        void testValidate() {
            Artifact plugin = new DefaultArtifact(
                    "org.apache.maven.its.plugins",
                    "maven-it-plugin",
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  5. impl/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleExecutor.java

        //
        // We need to know the specific version so that we can look up the right version of the plugin descriptor
        // which tells us what the default configuration is.
        //
    
        /**
         * @return The plugins bound to the lifecycles of the specified packaging or {@code null} if the packaging is
         *         unknown.
         */
        Set<Plugin> getPluginsBoundByDefaultToAllLifecycles(String packaging);
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 4.2K bytes
    - Click Count (0)
  6. samples/guide/src/main/java/okhttp3/recipes/kt/YubikeyClientAuth.kt

            .build()
    
        // An example test URL that returns client certificate details.
        val request =
          Request
            .Builder()
            .url("https://prod.idrix.eu/secure/")
            .build()
    
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
          println(response.body.string())
        }
      }
    }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat May 10 11:15:14 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/util/concurrent/InterruptionUtil.java

          while (true) {
            try {
              // TimeUnit.timedJoin() treats negative timeouts just like zero.
              NANOSECONDS.timedJoin(thread, remainingNanos);
              return;
            } catch (InterruptedException e) {
              interrupted = true;
              remainingNanos = end - System.nanoTime();
            }
          }
        } finally {
          if (interrupted) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Aug 10 19:54:19 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  8. .teamcity/.mvn/wrapper/MavenWrapperDownloader.java

                Authenticator.setDefault(new Authenticator() {
                    @Override
                    protected PasswordAuthentication getPasswordAuthentication() {
                        return new PasswordAuthentication(username, password);
                    }
                });
            }
            URL website = new URL(urlString);
            ReadableByteChannel rbc;
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Feb 26 01:48:39 GMT 2020
    - 4.8K bytes
    - Click Count (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/RequestBodyTest.kt

        content: String? = null,
        fn: (okio.Path) -> T,
      ): T {
        FileSystem.SYSTEM.write(filePath) {
          if (content != null) {
            writeUtf8(content)
          }
        }
    
        return fn(filePath)
      }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Oct 07 14:16:29 GMT 2025
    - 3.8K bytes
    - Click Count (1)
  10. docs/zh/docs/advanced/response-cookies.md

    **FastAPI** 会使用这个 *临时* 响应对象去装在这些cookies信息 (同样还有headers和状态码等信息), 最终会将这些信息和通过`response_model`转化过的数据合并到最终的响应里。
    
    你也可以在depend中定义`Response`参数,并设置cookie和header。
    
    ## 直接响应 `Response`
    
    你还可以在直接响应`Response`时直接创建cookies。
    
    你可以参考[Return a Response Directly](response-directly.md){.internal-link target=_blank}来创建response
    
    然后设置Cookies,并返回:
    
    {* ../../docs_src/response_cookies/tutorial001.py hl[10:12] *}
    
    /// tip
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 2.1K bytes
    - Click Count (0)
Back to Top