Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 66 for Huser (0.14 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/PoolConnectionUser.kt

    import java.net.InetAddress
    import java.net.Proxy
    import java.net.Socket
    import okhttp3.Connection
    import okhttp3.Handshake
    import okhttp3.HttpUrl
    import okhttp3.Protocol
    import okhttp3.Route
    
    /**
     * A user that is a connection pool creating connections in the background
     * without an intent to immediately use them.
     */
    object PoolConnectionUser : ConnectionUser {
      override fun addPlanToCancel(connectPlan: ConnectPlan) {
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 03 20:39:41 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/UrlComponentEncodingTesterJvm.kt

    import okhttp3.UrlComponentEncodingTester.Component
    
    fun urlComponentEncodingTesterJvmPlatform(component: Component): UrlComponentEncodingTester.Platform {
      return when (component) {
        Component.USER ->
          UrlComponentEncodingTesterJvmPlatform()
            .escapeForUri('%'.code)
    
        Component.PASSWORD ->
          UrlComponentEncodingTesterJvmPlatform()
            .escapeForUri('%'.code)
    
        Component.HOST ->
    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)
  3. okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt

        SKIP,
    
        ;
    
        open fun encode(codePoint: Int): String {
          throw UnsupportedOperationException()
        }
      }
    
      enum class Component {
        USER {
          override fun urlString(value: String): String = "http://$******@****.***/"
    
          override fun encodedValue(url: HttpUrl): String = url.encodedUsername
    
          override operator fun set(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

            connection.withLock { put(connection) }
          }
    
          return 0L // run again immediately to create more connections if needed
        } catch (e: IOException) {
          // No need to log, user.connectFailed() will already have been called. Just try again later.
          return state.policy.backoffDelayMillis.jitterBy(state.policy.backoffJitterMillis) * 1_000_000
        }
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  5. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

        if (started) return
        started = true
    
        this._inetSocketAddress = inetSocketAddress
    
        serverSocket = serverSocketFactory!!.createServerSocket()
    
        // Reuse if the user specified a port
        serverSocket!!.reuseAddress = inetSocketAddress.port != 0
        serverSocket!!.bind(inetSocketAddress, 50)
    
        portField = serverSocket!!.localPort
    
    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)
  6. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

        }
    
        if (mostRecentTrimFailed || mostRecentRebuildFailed) {
          // The OS has become our enemy! If the trim job failed, it means we are storing more data than
          // requested by the user. Do not allow edits so we do not go over that limit any further. If
          // the journal rebuild failed, the journal writer will not be active, meaning we will not be
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http/BridgeInterceptor.kt

    import okhttp3.Interceptor
    import okhttp3.Response
    import okhttp3.internal.USER_AGENT
    import okhttp3.internal.toHostHeader
    import okio.GzipSource
    import okio.buffer
    
    /**
     * Bridges from application code to network code. First it builds a network request from a user
     * request. Then it proceeds to call the network. Finally it builds a user response from the network
     * response.
     */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (2)
  8. okhttp/src/test/java/okhttp3/RequestCommonTest.kt

    class RequestCommonTest {
      @Test
      fun constructorNormal() {
        val url = "https://example.com/".toHttpUrl()
        val body = "hello".toRequestBody()
        val headers = headersOf("User-Agent", "RequestTest")
        val method = "PUT"
        val request =
          Request(
            url = url,
            headers = headers,
            method = method,
            body = body,
          )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  9. okcurl/src/test/kotlin/okhttp3/curl/MainTest.kt

        assertThat(request.url.toString()).isEqualTo("http://example.com/")
        assertThat(request.header("User-Agent")).isEqualTo("foo")
        assertThat(request.body).isNull()
      }
    
      @Test
      fun defaultUserAgent() {
        val request = fromArgs("http://example.com").createRequest()
        assertThat(request.header("User-Agent")!!).startsWith("okcurl/")
      }
    
      @Test
      fun headerSplitWithDate() {
        val request =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/kt/AccessHeaders.kt

    class AccessHeaders {
      private val client = OkHttpClient()
    
      fun run() {
        val request =
          Request.Builder()
            .url("https://api.github.com/repos/square/okhttp/issues")
            .header("User-Agent", "OkHttp Headers.java")
            .addHeader("Accept", "application/json; q=0.5")
            .addHeader("Accept", "application/vnd.github.v3+json")
            .build()
    
        client.newCall(request).execute().use { response ->
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.4K bytes
    - Viewed (0)
Back to top