Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 142 for Scheme (0.19 sec)

  1. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        val request = server.takeRequest()
        assertThat(request.requestLine).isEqualTo(
          "GET /a/deep/path?key=foo%20bar HTTP/1.1",
        )
        val requestUrl = request.requestUrl
        assertThat(requestUrl!!.scheme).isEqualTo("http")
        assertThat(requestUrl.host).isEqualTo(server.hostName)
        assertThat(requestUrl.port).isEqualTo(server.port)
        assertThat(requestUrl.encodedPath).isEqualTo("/a/deep/path")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  2. docs/zh/docs/advanced/security/oauth2-scopes.md

    ## 使用 `SecurityScopes`
    
    修改依赖项 `get_current_user`。
    
    这是上面的依赖项使用的依赖项。
    
    这里使用的也是之前创建的 OAuth2 方案,并把它声明为依赖项:`oauth2_scheme`。
    
    该依赖项函数本身不需要作用域,因此,可以使用 `Depends` 和 `oauth2_scheme`。不需要指定安全作用域时,不必使用 `Security`。
    
    此处还声明了从 `fastapin.security` 导入的 `SecurityScopes` 类型的特殊参数。
    
    `SecuriScopes` 类与 `Request` 类似(`Request` 用于直接提取请求对象)。
    
    ```Python hl_lines="8  105"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 22:43:35 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        builder.add("", "pin1", "pin2")
      }
    
      @Test
      fun challenge() {
        var challenge = Challenge("", mapOf("" to ""))
        challenge = Challenge("", "")
        val scheme: String = challenge.scheme
        val authParams: Map<String?, String> = challenge.authParams
        val realm: String? = challenge.realm
        val charset: Charset = challenge.charset
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 46.5K bytes
    - Viewed (4)
  4. okhttp/src/main/kotlin/okhttp3/EventListener.kt

       *
       * This will be invoked for route selection regardless of whether the client
       * is configured with a single proxy, a proxy selector, or neither.
       *
       * @param url a URL with only the scheme, hostname, and port specified.
       */
      open fun proxySelectStart(
        call: Call,
        url: HttpUrl,
      ) {
      }
    
      /**
       * Invoked after proxy selection.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  5. docs/em/docs/advanced/security/oauth2-scopes.md

    ## ⚙️ `SecurityScopes`
    
    🔜 ℹ 🔗 `get_current_user`.
    
    👉 1️⃣ ⚙️ 🔗 🔛.
    
    📥 👥 ⚙️ 🎏 Oauth2️⃣ ⚖ 👥 ✍ ⏭, 📣 ⚫️ 🔗: `oauth2_scheme`.
    
    ↩️ 👉 🔗 🔢 🚫 ✔️ 🙆 ↔ 📄 ⚫️, 👥 💪 ⚙️ `Depends` ⏮️ `oauth2_scheme`, 👥 🚫 ✔️ ⚙️ `Security` 🕐❔ 👥 🚫 💪 ✔ 💂‍♂ ↔.
    
    👥 📣 🎁 🔢 🆎 `SecurityScopes`, 🗄 ⚪️➡️ `fastapi.security`.
    
    👉 `SecurityScopes` 🎓 🎏 `Request` (`Request` ⚙️ 🤚 📨 🎚 🔗).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  6. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

        // Adapt the request and response into our Request and Response domain model.
        val scheme = if (request.handshake != null) "https" else "http"
        val authority = request.headers["Host"] // Has host and port.
        val fancyRequest =
          Request.Builder()
            .url("$scheme://$authority/")
            .headers(request.headers)
            .build()
        val fancyResponse =
          Response.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  7. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        val request = server.takeRequest()
        assertThat(request.requestLine).isEqualTo(
          "GET /a/deep/path?key=foo%20bar HTTP/1.1",
        )
        val requestUrl = request.requestUrl
        assertThat(requestUrl!!.scheme).isEqualTo("http")
        assertThat(requestUrl.host).isEqualTo(server.hostName)
        assertThat(requestUrl.port).isEqualTo(server.port)
        assertThat(requestUrl.encodedPath).isEqualTo("/a/deep/path")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt

          Header(TARGET_AUTHORITY, ""),
          Header(TARGET_METHOD, "GET"),
          Header(TARGET_METHOD, "POST"),
          Header(TARGET_PATH, "/"),
          Header(TARGET_PATH, "/index.html"),
          Header(TARGET_SCHEME, "http"),
          Header(TARGET_SCHEME, "https"),
          Header(RESPONSE_STATUS, "200"),
          Header(RESPONSE_STATUS, "204"),
          Header(RESPONSE_STATUS, "206"),
          Header(RESPONSE_STATUS, "304"),
          Header(RESPONSE_STATUS, "400"),
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (1)
  9. docs/changelogs/upgrading_to_okhttp_4.md

     * **Cache**: directory
     * **CacheControl**: immutable, maxAgeSeconds, maxStaleSeconds, minFreshSeconds, mustRevalidate,
       noCache, noStore, noTransform, onlyIfCached, sMaxAgeSeconds
     * **Challenge**: authParams, charset, realm, scheme
     * **CipherSuite**: javaName
     * **ConnectionSpec**: cipherSuites, supportsTlsExtensions, tlsVersions
     * **Cookie**: domain, expiresAt, hostOnly, httpOnly, name, path, persistent, value
     * **Dispatcher**: executorService
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 16:58:16 GMT 2022
    - 10.9K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

         *
         * @param streamId client-initiated stream ID.  Must be an odd number.
         * @param promisedStreamId server-initiated stream ID.  Must be an even number.
         * @param requestHeaders minimally includes `:method`, `:scheme`, `:authority`, and `:path`.
         */
        @Throws(IOException::class)
        fun pushPromise(
          streamId: Int,
          promisedStreamId: Int,
          requestHeaders: List<Header>,
        )
    
        /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
Back to top