Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for super (0.16 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/platform/Android10Platform.kt

        } else {
          super.getStackTraceForCloseable(closer)
        }
      }
    
      override fun logCloseableLeak(
        message: String,
        stackTrace: Any?,
      ) {
        if (Build.VERSION.SDK_INT >= 30) {
          (stackTrace as CloseGuard).warnIfOpen()
        } else {
          // Unable to report via CloseGuard. As a last-ditch effort, send it to the logger.
          super.logCloseableLeak(message, stackTrace)
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.7K bytes
    - Viewed (1)
  2. okhttp/src/main/kotlin/okhttp3/Cache.kt

              override fun close() {
                synchronized(this@Cache) {
                  if (done) return
                  done = true
                  writeSuccessCount++
                }
                super.close()
                editor.commit()
              }
            }
        }
    
        override fun abort() {
          synchronized(this@Cache) {
            if (done) return
            done = true
            writeAbortCount++
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/SpecificHostSocketFactory.kt

            val inetSocketAddress = hostMapping[requested.address] ?: defaultAddress ?: requested
            Platform.get().log("Socket connection to: $inetSocketAddress was: $requested")
            super.connect(inetSocketAddress, timeout)
          }
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/FastFallbackTest.kt

            var first = true
    
            override fun createSocket(): Socket {
              if (first) {
                first = false
                firstConnectLatch.await()
              }
              return super.createSocket()
            }
          }
    
        client =
          client.newBuilder()
            .protocols(listOf(Protocol.H2_PRIOR_KNOWLEDGE))
            .socketFactory(socketFactory)
            .addNetworkInterceptor(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/platform/ConscryptPlatform.kt

          Conscrypt.setApplicationProtocols(sslSocket, names.toTypedArray())
        } else {
          super.configureTlsExtensions(sslSocket, hostname, protocols)
        }
      }
    
      override fun getSelectedProtocol(sslSocket: SSLSocket): String? =
        if (Conscrypt.isConscrypt(sslSocket)) {
          Conscrypt.getApplicationProtocol(sslSocket)
        } else {
          super.getSelectedProtocol(sslSocket)
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/CallTest.kt

            override fun dispatch(request: RecordedRequest): MockResponse {
              if (peek().socketPolicy === DisconnectAfterRequest) {
                requestFinished.await()
              }
              return super.dispatch(request)
            }
          }
        dispatcher.enqueueResponse(MockResponse(body = "seed connection pool"))
        dispatcher.enqueueResponse(MockResponse(socketPolicy = DisconnectAfterRequest))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  7. okcurl/src/main/kotlin/okhttp3/curl/logging/LoggingUtil.kt

            }
            LogManager.getLogManager().reset()
            val handler =
              object : ConsoleHandler() {
                override fun publish(record: LogRecord) {
                  super.publish(record)
    
                  val parameters = record.parameters
                  if (sslDebug && record.loggerName == "javax.net.ssl" && parameters != null) {
                    System.err.println(parameters[0])
                  }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 2.7K bytes
    - Viewed (1)
  8. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt

      val pushPromises: List<PushPromise>
        get() = promises
    
      init {
        setResponseCode(200)
        setHeader("Content-Length", 0L)
      }
    
      public override fun clone(): MockResponse {
        val result = super.clone() as MockResponse
        result.headersBuilder = headersBuilder.build().newBuilder()
        result.promises = promises.toMutableList()
        return result
      }
    
      @JvmName("-deprecated_getStatus")
      @Deprecated(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/OkHttpClientTest.kt

            override fun contains(element: Protocol?): Boolean {
              if (element == null) throw NullPointerException()
              return super.contains(element)
            }
    
            override fun indexOf(element: Protocol?): Int {
              if (element == null) throw NullPointerException()
              return super.indexOf(element)
            }
          } as List<Protocol>
        val client =
          OkHttpClient.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/Progress.java

          return new ForwardingSource(source) {
            long totalBytesRead = 0L;
    
            @Override public long read(Buffer sink, long byteCount) throws IOException {
              long bytesRead = super.read(sink, byteCount);
              // read() returns the number of bytes read, or -1 if this source is exhausted.
              totalBytesRead += bytesRead != -1 ? bytesRead : 0;
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 12 03:31:36 GMT 2019
    - 3.9K bytes
    - Viewed (0)
Back to top