Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for knobs (0.17 sec)

  1. okhttp/src/test/java/okhttp3/SocksProxy.kt

              val domainName = fromSource.readUtf8(domainNameLength.toLong())
              // Resolve HOSTNAME_THAT_ONLY_THE_PROXY_KNOWS to localhost.
              when {
                domainName.equals(HOSTNAME_THAT_ONLY_THE_PROXY_KNOWS, ignoreCase = true) -> {
                  InetAddress.getByName("localhost")
                }
                else -> InetAddress.getByName(domainName)
              }
            }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ObjectArrays.java

       * elements than the collection), the element in the array immediately following the end of the
       * collection is set to {@code null}. This is useful in determining the length of the collection
       * <i>only</i> if the caller knows that the collection does not contain any null elements.
       *
       * <p>This method returns the elements in the order they are returned by the collection's
       * iterator.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 12 15:59:22 GMT 2023
    - 9K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java

        Class<E> result = classOrNull == null ? (Class<E>) (Class<?>) Object.class : classOrNull;
        return result;
      }
    
      /*
       * If I understand correctly:
       *
       * This needs to be a @JsMethod so that J2CL knows to look for a JavaScript implemention of
       * it in Platform.native.js. (The JavaScript implementation inline below is visible to *GWT*, but
       * *J2CL* doesn't look at it.)
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jun 29 18:16:45 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/SocksProxyTest.kt

          clientTestRule.newClientBuilder()
            .proxy(socksProxy.proxy())
            .build()
        val url =
          server.url("/")
            .newBuilder()
            .host(SocksProxy.HOSTNAME_THAT_ONLY_THE_PROXY_KNOWS)
            .build()
        val request = Request.Builder().url(url).build()
        val response1 = client.newCall(request).execute()
        assertThat(response1.body.string()).isEqualTo("abc")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/Authenticator.kt

       */
      @Throws(IOException::class)
      fun authenticate(
        route: Route?,
        response: Response,
      ): Request?
    
      companion object {
        /** An authenticator that knows no credentials and makes no attempt to authenticate. */
        @JvmField
        val NONE: Authenticator = AuthenticatorNone()
    
        private class AuthenticatorNone : Authenticator {
          override fun authenticate(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/background-tasks.md

    **FastAPI** knows what to do in each case and how to re-use the same object, so that all the background tasks are merged together and are run in the background afterwards:
    
    === "Python 3.10+"
    
        ```Python hl_lines="13  15  22  25"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/response-status-code.md

    <img src="/img/tutorial/response-status-code/image01.png">
    
    !!! note
        Some response codes (see the next section) indicate that the response does not have a body.
    
        FastAPI knows this, and will produce OpenAPI docs that state there is no response body.
    
    ## About HTTP status codes
    
    !!! note
        If you already know what HTTP status codes are, skip to the next section.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Aug 29 14:02:58 GMT 2020
    - 4K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/query-params.md

    
    ## Multiple path and query parameters
    
    You can declare multiple path parameters and query parameters at the same time, **FastAPI** knows which is which.
    
    And you don't have to declare them in any specific order.
    
    They will be detected by name:
    
    === "Python 3.10+"
    
        ```Python hl_lines="6  8"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Oct 20 09:08:42 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  9. docs/en/docs/advanced/security/http-basic-auth.md

    if "johndoe" == "stanleyjobson" and "love123" == "swordfish":
        ...
    ```
    
    But right at the moment Python compares the first `j` in `johndoe` to the first `s` in `stanleyjobson`, it will return `False`, because it already knows that those two strings are not the same, thinking that "there's no need to waste more computation comparing the rest of the letters". And your application will say "Incorrect username or password".
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jan 11 14:33:05 GMT 2024
    - 5.9K bytes
    - Viewed (0)
Back to top