Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for doThing (0.25 sec)

  1. okhttp-sse/src/main/kotlin/okhttp3/sse/EventSource.kt

    interface EventSource {
      /** Returns the original request that initiated this event source. */
      fun request(): Request
    
      /**
       * Immediately and violently release resources held by this event source. This does nothing if
       * the event source has already been closed or canceled.
       */
      fun cancel()
    
      fun interface Factory {
        /**
         * Creates a new event source and immediately returns it. Creating an event source initiates an
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerAdapter.kt

       * a default value.
       *
       * If this does read a value, it starts with the tag and length, and reads an entire value,
       * including any potential composed values.
       *
       * If there's nothing to read and no default value, this will throw an exception.
       */
      fun fromDer(reader: DerReader): T
    
      fun fromDer(byteString: ByteString): T {
        val buffer = Buffer().write(byteString)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

          override fun cancel() {
            exchange.cancel()
          }
        }
      }
    
      override fun route(): Route = route
    
      override fun cancel() {
        // Close the raw socket so we don't end up doing synchronous I/O.
        rawSocket?.closeQuietly()
      }
    
      override fun socket(): Socket = socket!!
    
      /** Returns true if this connection is ready to host new streams. */
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

      }
    
      /**
       * When callers parse a URL with query components that aren't encoded, we shouldn't convert them
       * into a canonical form because doing so could be semantically different.
       */
      @Test
      fun queryCharactersNotReencodedWhenParsed() {
        val url = parse("http://host/?a=!$(),/:;?@[]\\^`{|}~")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  5. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

            serveConnection(socket)
          }
        }
      }
    
      @Synchronized
      @Throws(IOException::class)
      fun shutdown() {
        if (shutdown) return
        shutdown = true
    
        if (!started) return // Nothing to shut down.
        val serverSocket = this.serverSocket ?: return // If this is null, start() must have failed.
    
        // Cause acceptConnections() to break out.
        serverSocket.close()
    
        // Await shutdown.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 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

      private val cleanupTask =
        object : Task("$okHttpName Cache") {
          override fun runOnce(): Long {
            synchronized(this@DiskLruCache) {
              if (!initialized || closed) {
                return -1L // Nothing to do.
              }
    
              try {
                trimToSize()
              } catch (_: IOException) {
                mostRecentTrimFailed = true
              }
    
              try {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

       * Returns -1 if no further cleanups are required.
       */
      fun closeConnections(now: Long): Long {
        // Compute the concurrent call capacity for each address. We won't close a connection if doing
        // so would violate a policy, unless it's OLD.
        val addressStates = this.addressStates
        for (state in addressStates.values) {
          state.concurrentCallCapacity = 0
        }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

                    readBytes.update(acknowledged = unacknowledgedBytesRead)
                  }
                } else if (!finished && errorExceptionToDeliver == null) {
                  // Nothing to do. Wait until that changes then try again.
                  waitForIo()
                  tryAgain = true
                }
              } finally {
                if (doReadTimeout) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  9. okhttp/src/test/java/okhttp3/CacheTest.kt

    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/concurrent/TaskRunnerTest.kt

        )
      }
    
      /** Test the introspection method [TaskQueue.scheduledTasks]. */
      @Test fun scheduledTasks() {
        redQueue.execute("task one", 100.µs) {
          // Do nothing.
        }
    
        redQueue.execute("task two", 200.µs) {
          // Do nothing.
        }
    
        assertThat(redQueue.scheduledTasks.toString()).isEqualTo("[task one, task two]")
    
        assertThat(testLogHandler.takeAll()).containsExactly(
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 20K bytes
    - Viewed (0)
Back to top