Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for Magic (0.18 sec)

  1. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        assertThat(readJournalLines()).isEqualTo(
          listOf(DiskLruCache.MAGIC, DiskLruCache.VERSION_1, "100", "2", "") + expectedBodyLines,
        )
      }
    
      private fun createJournal(vararg bodyLines: String) {
        createJournalWithHeader(
          DiskLruCache.MAGIC,
          DiskLruCache.VERSION_1,
          "100",
          "2",
          "",
          *bodyLines,
        )
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 75.8K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/fakes_test.go

    	return nil
    }
    
    // fakeNs is a mock struct for testing
    type fakeNs struct {
    	closed *atomic.Bool
    	fd     uintptr
    	inode  uint64
    }
    
    func newFakeNs(fd uintptr) *fakeNs {
    	// the fake inode is the fd! magic.
    	return &fakeNs{closed: &atomic.Bool{}, fd: fd, inode: uint64(fd)}
    }
    
    func newFakeNsInode(fd uintptr, inode uint64) *fakeNs {
    	return &fakeNs{closed: &atomic.Bool{}, fd: fd, inode: inode}
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/path-operation-advanced-configuration.md

    In this example, we didn't declare any Pydantic model. In fact, the request body is not even <abbr title="converted from some plain format, like bytes, into Python objects">parsed</abbr> as JSON, it is read directly as `bytes`, and the function `magic_data_reader()` would be in charge of parsing it in some way.
    
    Nevertheless, we can declare the expected schema for the request body.
    
    ### Custom OpenAPI content type
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  4. docs/em/docs/advanced/path-operation-advanced-configuration.md

    {!../../../docs_src/path_operation_advanced_configuration/tutorial006.py!}
    ```
    
    πŸ‘‰ πŸ–Ό, πŸ‘₯ 🚫 πŸ“£ πŸ™† Pydantic 🏷. πŸ‘, πŸ“¨ πŸ’ͺ 🚫 <abbr title="converted from some plain format, like bytes, into Python objects">🎻</abbr> 🎻, ⚫️ ✍ πŸ”— `bytes`, &amp; πŸ”’ `magic_data_reader()` πŸ”œ 🈚 🎻 ⚫️ 🌌.
    
    πŸ‘, πŸ‘₯ πŸ’ͺ πŸ“£ πŸ“ˆ πŸ”— πŸ“¨ πŸ’ͺ.
    
    ### πŸ›ƒ πŸ—„ 🎚 πŸ†Ž
    
    βš™οΈ πŸ‘‰ 🎏 🎱, πŸ‘† πŸ’ͺ βš™οΈ Pydantic 🏷 πŸ”¬ 🎻 πŸ”— πŸ‘ˆ ‴️ πŸ”Œ πŸ›ƒ πŸ—„ πŸ”— πŸ“„ *➑ πŸ› οΈ*.
    
    &amp; πŸ‘† πŸ’ͺ πŸ‘‰ πŸš₯ πŸ’½ πŸ†Ž πŸ“¨ 🚫 🎻.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  5. docs/de/docs/advanced/path-operation-advanced-configuration.md

    Dennoch kΓΆnnen wir das zu erwartende Schema fΓΌr den Requestbody deklarieren.
    
    ### Benutzerdefinierter OpenAPI-Content-Type
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 20:27:23 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  6. docs/fr/docs/advanced/path-operation-advanced-configuration.md

    NΓ©anmoins, nous pouvons dΓ©clarer le schΓ©ma attendu pour le corps de la requΓͺte.
    
    ### Type de contenu OpenAPI personnalisΓ©
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

        webServer.enqueue(
          MockResponse.Builder()
            .code(101)
            .setHeader("Connection", "Upgrade")
            .setHeader("Upgrade", "websocket")
            .setHeader("Sec-WebSocket-Accept", "magic")
            .build(),
        )
        webServer.enqueue(
          MockResponse.Builder()
            .socketPolicy(SocketPolicy.DisconnectAtStart)
            .build(),
        )
        val webSocket = newWebSocket()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 35.2K bytes
    - Viewed (1)
  8. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

            "Expected 'Upgrade' header value 'websocket' but was '$headerUpgrade'",
          )
        }
    
        val headerAccept = response.header("Sec-WebSocket-Accept")
        val acceptExpected = (key + WebSocketProtocol.ACCEPT_MAGIC).encodeUtf8().sha1().base64()
        if (acceptExpected != headerAccept) {
          throw ProtocolException(
            "Expected 'Sec-WebSocket-Accept' header value '$acceptExpected' but was '$headerAccept'",
          )
        }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  9. docs/changelogs/changelog_4x.md

        This regression was introduced in OkHttp 4.3.0.
     *  Fix: Don't crash with an `IllegalArgumentException` when using custom trust managers on
        Android 10. Android uses reflection to look up a magic `checkServerTrusted()` method and we
        didn't have it.
     *  Fix: Explicitly specify the remote server name when making HTTPS connections on Android 5. In
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Ordering.java

        }
    
        /*
         * We need to be able to mock identityHashCode() calls for tests, because it
         * can take 1-10 seconds to find colliding objects. Mocking frameworks that
         * can do magic to mock static method calls still can't do so for a system
         * class, so we need the indirection. In production, Hotspot should still
         * recognize that the call is 1-morphic and should still be willing to
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 39.4K bytes
    - Viewed (0)
Back to top