Search Options

Results per page
Sort
Preferred Languages
Advance

Results 2111 - 2120 of 2,476 for metodu (0.04 sec)

  1. docs/es/docs/advanced/custom-response.md

    Digamos que quieres que devuelva JSON con sangría y formato, por lo que quieres usar la opción de orjson `orjson.OPT_INDENT_2`.
    
    Podrías crear un `CustomORJSONResponse`. Lo principal que tienes que hacer es crear un método `Response.render(content)` que devuelva el contenido como `bytes`:
    
    {* ../../docs_src/custom_response/tutorial009c_py39.py hl[9:14,17] *}
    
    Ahora en lugar de devolver:
    
    ```json
    {"message": "Hello World"}
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java

            int size = request.size();
    
            // Then
            // Size should be aligned to 8 bytes: SMB2_HEADER_LENGTH + 32
            int expectedSize = Smb2Constants.SMB2_HEADER_LENGTH + 32;
            // The size8 method aligns to 8-byte boundary
            int alignedSize = (expectedSize + 7) & ~7;
            assertEquals(alignedSize, size);
        }
    
        @Test
        @DisplayName("Should write correct bytes to wire format")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/mdo/profiles.mdo

              <association>
                <type>RepositoryPolicy</type>
              </association>
            </field>
          </fields>
          <!-- prevent modello generation of an incorrect equals method. Could be avoided by using <identity/> tags to mark ID as the only identity field -->
          <codeSegments>
            <codeSegment>
              <version>1.0.0</version>
              <code><![CDATA[
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jan 22 11:03:29 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/math/PairedStatsAccumulator.java

    public final class PairedStatsAccumulator {
      /** Creates a new accumulator. */
      public PairedStatsAccumulator() {}
    
      // These fields must satisfy the requirements of PairedStats' constructor as well as those of the
      // stat methods of this class.
      private final StatsAccumulator xStats = new StatsAccumulator();
      private final StatsAccumulator yStats = new StatsAccumulator();
      private double sumOfProductsOfDeltas = 0.0;
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 08 18:35:13 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/suggest/SuggesterResourceLoadingTest.java

         * Verifies that the new implementation correctly reads entire resource content.
         */
        @Test
        public void testResourceReading_readAllBytesCorrectness() throws Exception {
            // Read using the new method (readAllBytes)
            String contentNew;
            try (InputStream is = getClass().getClassLoader().getResourceAsStream("suggest_indices/suggest/mappings-default.json")) {
                assertNotNull("Resource should exist", is);
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/ExtractorResourceManagementTest.java

            } catch (final ExtractException e) {
                assertTrue("Error message should contain encoding information", e.getMessage().contains("encoding"));
            }
        }
    
        /**
         * Helper method to create a trackable input stream that records when it's closed.
         */
        private InputStream createTrackableInputStream(final InputStream originalStream, final AtomicBoolean closedFlag) {
            return new InputStream() {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/pac/PacDataInputStreamTest.java

            byte[] data = new byte[] { 0x78, 0x56, 0x34, 0x12 };
            PacDataInputStream pdis = createInputStream(data);
            SID sid = pdis.readId();
            // The readId method creates a SID with authority 5 and the RID value
            // Expected format: S-1-5-305419896
            String sidString = sid.toString();
            assertNotNull(sidString);
            assertEquals("S-1-5-305419896", sidString);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

    Then, we can change the dependency "dependable" `common_parameters` from above to the class `CommonQueryParams`:
    
    {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[11:15] *}
    
    Pay attention to the `__init__` method used to create the instance of the class:
    
    {* ../../docs_src/dependencies/tutorial002_an_py310.py hl[12] *}
    
    ...it has the same parameters as our previous `common_parameters`:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  9. docs/uk/docs/tutorial/request-files.md

    Щоб дізнатися більше про ці типи кодування та формові поля, ознайомтеся з <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST" class="external-link" target="_blank"><abbr title="Mozilla Developer Network">документацією MDN</abbr> щодо <code>POST</code></a>.
    
    ///
    
    /// warning | Увага
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Feb 22 22:01:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

            assertThat(i.next().getKey(), is(nullValue()));
            assertThat(i.next().getKey(), is("1"));
            assertThat(i.next().getKey(), is("2"));
        }
    
        /**
         * Test method for {@link org.seasar.util.collection.ArrayIterator#remove()}
         * .
         */
        @Test
        public void testArrayIteratorRemoveException() {
            exception.expect(ClIllegalStateException.class);
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 10.7K bytes
    - Viewed (0)
Back to top