Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 38 for Mask (0.12 sec)

  1. okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt

    class ConnectionPoolTest {
      private val routePlanner = FakeRoutePlanner()
      private val factory = routePlanner.factory
      private val taskFaker = routePlanner.taskFaker
      private val peer = MockHttp2Peer()
    
      /** The fake task runner prevents the cleanup runnable from being started.  */
      private val addressA = factory.newAddress("a")
      private val routeA1 = factory.newRoute(addressA)
      private val addressB = factory.newAddress("b")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/internal/duplex/MockStreamHandler.kt

        duration: Long,
        unit: TimeUnit,
      ) = apply {
        actions += { Thread.sleep(unit.toMillis(duration)) }
      }
    
      override fun handle(stream: Stream) {
        val task = serviceStreamTask(stream)
        results.add(task)
        task.run()
      }
    
      /** Returns a task that processes both request and response from [stream]. */
      private fun serviceStreamTask(stream: Stream): FutureTask<Void> {
        return FutureTask<Void> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

      private val key: String
    
      /** Non-null for client web sockets. These can be canceled. */
      internal var call: Call? = null
    
      /** This task processes the outgoing queues. Call [runWriter] to after enqueueing. */
      private var writerTask: Task? = null
    
      /** Null until this web socket is connected. Only accessed by the reader thread. */
      private var reader: WebSocketReader? = null
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

        }
      }
    
      /**
       * Closes this connection. This cancels all open streams and unanswered pings. It closes the
       * underlying input and output streams and shuts down internal task queues.
       */
      override fun close() {
        close(ErrorCode.NO_ERROR, ErrorCode.CANCEL, null)
      }
    
      internal fun close(
        connectionCode: ErrorCode,
        streamCode: ErrorCode,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  5. samples/slack/src/main/java/okhttp3/slack/OAuthSessionFactory.java

        return ByteString.of(bytes);
      }
    
      private HttpUrl redirectUrl() {
        return mockWebServer.url("/oauth/");
      }
    
      /** When the browser hits the redirect URL, use the provided code to ask Slack for a session. */
      @Override public MockResponse dispatch(RecordedRequest request) {
        HttpUrl requestUrl = mockWebServer.url(request.getPath());
        String code = requestUrl.queryParameter("code");
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Aug 12 07:26:27 GMT 2021
    - 3.8K bytes
    - Viewed (0)
  6. okhttp/build.gradle.kts

           the task as up-to-date, because these two files, which are based on
           the generated index.xml, are outputs, not inputs. We can be sure of
           this because they are deleted in the @BeforeEach method of the
           OsgiTest test class.
    
           - To enable the benefit of incremental builds, we can ask Gradle
           to ignore these two files when considering whether the classpath
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Jan 04 05:32:07 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  7. CHANGELOG.md

    
    ## Version 5.0.0-alpha.5
    
    _2022-02-21_
    
     *  Fix: Don't include [Assertk][assertk] in OkHttp's production dependencies. This regression was
        introduced in the 5.0.0-alpha.4 release.
     *  Fix: Don't ask `Dns` implementations to resolve strings that are already IP addresses.
     *  Fix: Change fast fallback to race TCP handshakes only. To avoid wasted work, OkHttp will not
        attempt multiple TLS handshakes for the same call concurrently.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

      private val cleanupQueue: TaskQueue = taskRunner.newQueue()
      private val cleanupTask =
        object : Task("$okHttpName ConnectionPool connection closer") {
          override fun runOnce(): Long = closeConnections(System.nanoTime())
        }
    
      private fun AddressState.scheduleOpener() {
        queue.schedule(
          object : Task("$okHttpName ConnectionPool connection opener") {
    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)
  9. buildSrc/src/main/kotlin/Osgi.kt

          jarTask,
        )
      bundleExtension.run {
        setClasspath(osgi.compileClasspath + sourceSets["main"].compileClasspath)
        bnd(*bndProperties)
      }
      // Call the convention when the task has finished, to modify the jar to contain OSGi metadata.
      jarTask.doLast {
        bundleExtension.buildAction().execute(this)
      }
    }
    
    val Project.sourceSets: SourceSetContainer
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  10. .github/ISSUE_TEMPLATE/question.md

    ---
    name: Question
    about: Use Stack Overflow instead
    title: "\U0001F649"
    labels: ''
    assignees: ''
    
    ---
    
    🛑 𝙎𝙏𝙊𝙋
    
    This issue tracker is not the place for questions!
    
    If you want to ask how to do something, or to understand why something isn't working the way you expect it to, use Stack Overflow. https://stackoverflow.com/questions/tagged/okhttp
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 30 18:42:51 GMT 2018
    - 406 bytes
    - Viewed (0)
Back to top