Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 2591 - 2600 of 3,713 for creaste (0.33 seconds)

  1. docs/zh/docs/advanced/response-change-status-code.md

    你可能之前已经了解到,你可以设置默认的[响应状态码](../tutorial/response-status-code.md)。
    
    但在某些情况下,你需要返回一个不同于默认值的状态码。
    
    ## 使用场景 { #use-case }
    
    例如,假设你想默认返回一个HTTP状态码为“OK”`200`。
    
    但如果数据不存在,你想创建它,并返回一个HTTP状态码为“CREATED”`201`。
    
    但你仍然希望能够使用`response_model`过滤和转换你返回的数据。
    
    对于这些情况,你可以使用一个`Response`参数。
    
    ## 使用 `Response` 参数 { #use-a-response-parameter }
    
    你可以在你的*路径操作函数*中声明一个`Response`类型的参数(就像你可以为cookies和头部做的那样)。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 1.5K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/auth/chain/LdapChainTest.java

            assertSame(user, result);
            assertEquals("modified", user.getName()); // Check that user was modified
            assertTrue(testLdapManager.applyCalled);
        }
    
        // Helper method to create test user
        private User createTestUser(String username, String password) {
            User user = new User();
            user.setName(username);
            user.setPassword(password);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 9.5K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java

                      // but here we have to do some serious fudging
                      @Override
                      @SuppressWarnings({"unchecked", "rawtypes"})
                      public Map<TypeToken, Object> create(Object... elements) {
                        MutableTypeToInstanceMap<Object> map = new MutableTypeToInstanceMap<>();
                        for (Object object : elements) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java

      private TimeLimiter service;
    
      private static final ExecutorService executor = newFixedThreadPool(1);
    
      @Override
      protected void setUp() throws Exception {
        super.setUp();
        service = SimpleTimeLimiter.create(executor);
      }
    
      public void testNewProxy_goodMethodWithEnoughTime() throws Exception {
        SampleImpl target = new SampleImpl(DELAY_MS);
        Sample proxy = service.newProxy(target, Sample.class, ENOUGH_MS, MILLISECONDS);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/smb2/rdma/RdmaConnection.java

        /** Maximum size for fragmented operations */
        protected int maxFragmentedSize;
        /** Maximum size for RDMA read/write operations */
        protected int maxReadWriteSize;
    
        /**
         * Create new RDMA connection
         *
         * @param remote remote socket address
         * @param local local socket address, may be null
         */
        public RdmaConnection(InetSocketAddress remote, InetSocketAddress local) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:12:28 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb1/util/MimeMapTest.java

                assertNotNull(customResult);
            }
        }
    
        @Nested
        @DisplayName("Constructor and initialization")
        class ConstructorTests {
    
            @Test
            @DisplayName("Should create MimeMap instance successfully")
            void testConstructor() {
                assertDoesNotThrow(() -> new MimeMap());
            }
    
            @Test
            @DisplayName("Should load mime.map resource properly")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  7. src/test/java/jcifs/util/ResourceManagerTest.java

        }
    
        @Test
        @DisplayName("Test leak detection for unclosed resources")
        @Timeout(value = 5, unit = TimeUnit.SECONDS)
        void testLeakDetection() throws InterruptedException {
            // Create resource that will be garbage collected without closing
            createLeakyResource();
    
            // Force garbage collection
            System.gc();
            Thread.sleep(200);
    
            // Check for leaks
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  8. helm/minio/templates/post-job.yaml

            {{- end }}
            {{- if .Values.customCommandJob.extraVolumes }}
              {{- toYaml .Values.customCommandJob.extraVolumes | nindent 8 }}
            {{- end }}
          {{- if .Values.serviceAccount.create }}
          serviceAccountName: {{ .Values.serviceAccount.name }}
          {{- end }}
          {{- if .Values.policies }}
          initContainers:
            - name: minio-make-policy
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Thu Oct 10 15:48:31 GMT 2024
    - 10.4K bytes
    - Click Count (0)
  9. CLAUDE.md

    - **Base class**: Extend `PlainTestCase` from UTFlute
    - **Test Resources**: `src/test/resources/`
    - **Coverage Goal**: >80% line coverage
    
    ### Contributing
    
    1. Fork repo, create feature branch
    2. Make focused commits with tests
    3. Format code (`mvn formatter:format && mvn license:format`)
    4. Run tests (`mvn test`)
    5. Open Pull Request
    
    ---
    
    ## Quick Reference
    
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Thu Mar 12 03:39:20 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  10. CLAUDE.md

    searchTimeout: 15s
    indexTimeout: 1m
    bulkTimeout: 1m
    ```
    
    ### Common Workflows
    
    **Index Lifecycle:**
    ```java
    suggester.createIndexIfNothing();      // Initial setup
    suggester.createNextIndex();            // Create new index
    // ... indexing operations ...
    suggester.switchIndex();                // Switch to new index
    suggester.removeDisableIndices();       // Cleanup old indices
    ```
    
    **Async Operations:**
    ```java
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Thu Mar 12 03:39:53 GMT 2026
    - 8.1K bytes
    - Click Count (0)
Back to Top