Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 292 for null (0.16 sec)

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

      /** Initialized in [callStart]. */
      private var callStackTrace: Any? = null
    
      /** Finds an exchange to send the next request and receive the next response. */
      private var exchangeFinder: ExchangeFinder? = null
    
      var connection: RealConnection? = null
        private set
      private var timeoutEarlyExit = false
    
      /**
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  2. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

            synchronized(this@Relay) {
              upstreamReader = null
              ******@****.***All()
            }
          }
        }
    
        override fun timeout(): Timeout = timeout
    
        @Throws(IOException::class)
        override fun close() {
          if (fileOperator == null) return // Already closed.
          fileOperator = null
    
          var fileToClose: RandomAccessFile? = null
          synchronized(this@Relay) {
            sourceCount--
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  3. okhttp-sse/src/test/java/okhttp3/sse/internal/ServerSentEventIteratorTest.kt

        assertThat(callbacks.remove()).isEqualTo(Event(null, null, "third event"))
      }
    
      @Test
      fun nakedFieldNames() {
        consumeEvents(
          """
          |data
          |
          |data
          |data
          |
          |data:
          |
          """.trimMargin(),
        )
        assertThat(callbacks.remove()).isEqualTo(Event(null, null, ""))
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/Authenticator.kt

     *         .header("Proxy-Authorization", "secret")
     *         .build();
     *   }
     * }
     * return null; // Didn't find a preemptive auth scheme.
     * ```
     *
     * ## Reactive Authentication
     *
     * Implementations authenticate by returning a follow-up request that includes an authorization
     * header, or they may decline the challenge by returning null. In this case the unauthenticated
     * response will be returned to the caller that triggered it.
     *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingConnectionListener.kt

       */
      fun takeEvent(
        eventClass: Class<out ConnectionEvent>? = null,
        elapsedMs: Long = -1L,
      ): ConnectionEvent {
        val result = eventSequence.remove()
        val actualElapsedNs = result.timestampNs - (lastTimestampNs ?: result.timestampNs)
        lastTimestampNs = result.timestampNs
    
        if (eventClass != null) {
          assertThat(result).isInstanceOf(eventClass)
        }
    
        if (elapsedMs != -1L) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt

            if (openJSSE != null) {
              return openJSSE
            }
          }
    
          // An Oracle JDK 9 like OpenJDK, or JDK 8 251+.
          val jdk9 = Jdk9Platform.buildIfSupported()
    
          if (jdk9 != null) {
            return jdk9
          }
    
          // An Oracle JDK 8 like OpenJDK, pre 251.
          val jdkWithJettyBoot = Jdk8WithJettyBootPlatform.buildIfSupported()
    
          if (jdkWithJettyBoot != null) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (1)
  7. okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt

        @JvmField var associatedStreamId = 0
    
        @JvmField var errorCode: ErrorCode? = null
    
        @JvmField var windowSizeIncrement: Long = 0
    
        @JvmField var headerBlock: List<Header>? = null
    
        @JvmField var data: ByteArray? = null
    
        @JvmField var settings: Settings? = null
    
        @JvmField var ack = false
    
        @JvmField var payload1 = 0
    
        @JvmField var payload2 = 0
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/ResponseBodyJvmTest.kt

        assertThat(body.string()).isEqualTo(text)
      }
    
      companion object {
        @JvmOverloads
        fun body(
          hex: String,
          charset: String? = null,
        ): ResponseBody {
          val mediaType = if (charset == null) null else "any/thing; charset=$charset".toMediaType()
          return hex.decodeHex().toResponseBody(mediaType)
        }
    
        fun exhaust(reader: Reader): String {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

            RealConnection(
              taskRunner = taskRunner,
              connectionPool = connectionPool,
              route = route,
              rawSocket = null,
              socket = socket,
              handshake = null,
              protocol = null,
              source = null,
              sink = null,
              pingIntervalMillis = 0,
              ConnectionListener.NONE,
            )
          result.idleAtNs = idleAtNs
          return result
        }
    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)
  10. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

      if (result.containsInvalidLabelLengths()) return null
    
      return result
    }
    
    internal fun idnToAscii(host: String): String? {
      val bufferA = Buffer().writeUtf8(host)
      val bufferB = Buffer()
    
      // 1. Map, from bufferA to bufferB.
      while (!bufferA.exhausted()) {
        val codePoint = bufferA.readUtf8CodePoint()
        if (!IDNA_MAPPING_TABLE.map(codePoint, bufferB)) return null
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.2K bytes
    - Viewed (0)
Back to top