Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 90 for Before (0.22 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

    import okio.sink
    import okio.source
    
    /**
     * A socket connection to a remote peer. A connection hosts streams which can send and receive
     * data.
     *
     * Many methods in this API are **synchronous:** the call is completed before the method returns.
     * This is typical for Java but atypical for HTTP/2. This is motivated by exception transparency:
     * an [IOException] that was triggered by a certain caller can be caught and handled by that caller.
     */
    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)
  2. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

      val port: Int
        get() {
          before()
          return portField
        }
    
      val hostName: String
        get() {
          before()
          return _inetSocketAddress!!.address.hostName
        }
    
      private var _inetSocketAddress: InetSocketAddress? = null
    
      val inetSocketAddress: InetSocketAddress
        get() {
          before()
          return InetSocketAddress(hostName, portField)
        }
    
    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)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

          debugData = source.readByteString(opaqueDataLength.toLong())
        }
        handler.goAway(lastStreamId, errorCode, debugData)
      }
    
      /** Unlike other `readXxx()` functions, this one must log the frame before returning. */
      @Throws(IOException::class)
      private fun readWindowUpdate(
        handler: Handler,
        length: Int,
        flags: Int,
        streamId: Int,
      ) {
        val increment: Long
        try {
    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)
  4. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        val redirect = server.takeRequest()
        assertThat(redirect.requestLine).isEqualTo("GET /new-path HTTP/1.1")
      }
    
      /**
       * Test that MockWebServer blocks for a call to enqueue() if a request is made before a mock
       * response is ready.
       */
      @Test
      fun dispatchBlocksWaitingForEnqueue() {
        Thread {
          try {
            Thread.sleep(1000)
          } catch (ignored: InterruptedException) {
          }
    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)
  5. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

                .networkResponse(networkResponse.stripBody())
                .build()
    
            networkResponse.body.close()
    
            // Update the cache after combining headers but before stripping the
            // Content-Encoding header (as performed by initContentStream()).
            cache!!.trackConditionalCacheHit()
            cache.update(cacheResponse, response)
            return response.also {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/platform/android/AndroidLog.kt

              i = end
            } while (i < newline)
            i++
          }
        }
      }
    
      private fun loggerTag(loggerName: String): String {
        // We need to handle long logger names before they hit Log.
        // java.lang.IllegalArgumentException: Log tag "okhttp3.mockwebserver.MockWebServer" exceeds limit of 23 characters
        return knownLoggers[loggerName] ?: loggerName.take(23)
      }
    
      fun enable() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

      private var reader: WebSocketReader? = null
    
      // All mutable web socket state is guarded by this.
    
      /** Null until this web socket is connected. Note that messages may be enqueued before that. */
      private var writer: WebSocketWriter? = null
    
      /** Used for writes, pings, and close timeouts. */
      private var taskQueue = taskRunner.newQueue()
    
      /** Names this web socket for observability and debugging. */
    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)
  8. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

     *    IP address (`74.122.190.80`), or a hostname pattern (`*.api.squareup.com`).
     *
     *  * **A validity interval.** A certificate should not be used before its validity interval starts
     *    or after it ends.
     *
     *  * **A public key.** This cryptographic key is used for asymmetric encryption digital signatures.
     *    Note that the private key is not a part of the certificate!
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.6K bytes
    - Viewed (1)
  9. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        assertThat(firstFrame(logs, "HEADERS")!!, "header logged")
          .contains("HEADERS       END_HEADERS")
        // While MockWebServer waits to read the client's HEADERS frame before sending the response, it
        // doesn't wait to read the client's DATA frame and may send a DATA frame before the client
        // does. So we can't assume the client's empty DATA will be logged first.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/JsseDebugLogging.kt

        val type: Type
          get() =
            when {
              message == "adding as trusted certificates" -> Type.Setup
              message == "Raw read" || message == "Raw write" -> Type.Encrypted
              message == "Plaintext before ENCRYPTION" || message == "Plaintext after DECRYPTION" -> Type.Plaintext
              message.startsWith("System property ") -> Type.Setup
              message.startsWith("Reload ") -> Type.Setup
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (0)
Back to top