Search Options

Results per page
Sort
Preferred Languages
Advance

Results 311 - 320 of 508 for eval (0.01 sec)

  1. okhttp/src/androidMain/kotlin/okhttp3/internal/publicsuffix/AssetPublicSuffixList.kt

    import java.io.IOException
    import okhttp3.internal.platform.PlatformRegistry
    import okio.Source
    import okio.source
    
    internal class AssetPublicSuffixList(
      override val path: String = PUBLIC_SUFFIX_RESOURCE,
    ) : BasePublicSuffixList() {
      override fun listSource(): Source {
        val assets = PlatformRegistry.applicationContext?.assets
    
        if (assets == null) {
          if (Build.FINGERPRINT == null) {
            throw IOException(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/UppercaseResponseInterceptor.kt

        return object : ForwardingSource(source) {
          @Throws(IOException::class)
          override fun read(
            sink: Buffer,
            byteCount: Long,
          ): Long {
            val buffer = Buffer()
            val read = delegate.read(buffer, byteCount)
            if (read != -1L) {
              sink.write(buffer.readByteString().toAsciiUppercase())
            }
            return read
          }
        }
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  3. src/main/webapp/js/suggestor.js

            started = true;
            isFocusList = false;
          } else if (e.keyCode === 38) {
            /*			if($boxElement.css("display") !== "none") {
    				var strTmp = $textArea.val();
    				$textArea.val("");
    				$textArea.focus();
    				$textArea.val(strTmp);
    			} */
          }
        });
        $(this).blur(function() {
          if (!isMouseHover) {
            suggestor.fixList();
          }
        });
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Mar 30 05:45:24 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/MediaTypeTest.kt

      @Test fun testDoubleQuotesAreSpecial() {
        val mediaType = parse("text/plain;a=\";charset=utf-8;b=\"")
        assertNull(mediaType.charsetName())
      }
    
      @Test fun testSingleQuotesAreNotSpecial() {
        val mediaType = parse("text/plain;a=';charset=utf-8;b='")
        assertEquals("UTF-8", mediaType.charsetName())
      }
    
      @Test fun testParseWithSpecialCharacters() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  5. samples/compare/src/test/kotlin/okhttp3/compare/OkHttpClientTest.kt

     *
     * https://square.github.io/okhttp/
     */
    class OkHttpClientTest {
      @JvmField @RegisterExtension
      val platform = PlatformRule()
    
      @StartStop
      private val server = MockWebServer()
    
      @Test fun get() {
        server.enqueue(MockResponse(body = "hello, OkHttp"))
    
        val client = OkHttpClient()
    
        val request =
          Request
            .Builder()
            .url(server.url("/"))
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectInterceptor.kt

     */
    object ConnectInterceptor : Interceptor {
      @Throws(IOException::class)
      override fun intercept(chain: Interceptor.Chain): Response {
        val realChain = chain as RealInterceptorChain
        val exchange = realChain.call.initExchange(realChain)
        val connectedChain = realChain.copy(exchange = exchange)
        return connectedChain.proceed(realChain.request)
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/kt/Authenticate.kt

                println("Challenges: ${response.challenges()}")
                val credential = Credentials.basic("jesse", "password1")
                return response.request
                  .newBuilder()
                  .header("Authorization", credential)
                  .build()
              }
            },
          ).build()
    
      fun run() {
        val request =
          Request
            .Builder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2K bytes
    - Viewed (0)
  8. okcurl/src/main/kotlin/okhttp3/curl/logging/OneLineLogFormat.kt

        val message = formatMessage(record)
    
        val time = Instant.ofEpochMilli(record.millis).atZone(offset)
    
        return if (record.thrown != null) {
          val sw = StringWriter(4096)
          val pw = PrintWriter(sw)
          record.thrown.printStackTrace(pw)
          String.format("%s\t%s%n%s%n", time.format(d), message, sw.toString())
        } else {
          String.format("%s\t%s%n", time.format(d), message)
        }
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Apr 05 03:30:42 UTC 2024
    - 2.1K bytes
    - Viewed (1)
  9. mockwebserver/src/main/kotlin/mockwebserver3/internal/ThrottledSink.kt

     * this permits any interval to be used.
     */
    internal class ThrottledSink(
      private val socket: MockWebServerSocket,
      private val delegate: Sink,
      private val bytesPerPeriod: Long,
      private val periodDelayNanos: Long,
    ) : Sink by delegate {
      private var bytesWrittenSinceLastDelay = 0L
    
      override fun write(
        source: Buffer,
        byteCount: Long,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 12:43:16 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/Trans2FindFirst2ResponseTest.java

        private void writeInt2(int val, byte[] dst, int dstIndex) {
            dst[dstIndex] = (byte) val;
            dst[dstIndex + 1] = (byte) (val >> 8);
        }
    
        private void writeInt4(int val, byte[] dst, int dstIndex) {
            dst[dstIndex] = (byte) val;
            dst[dstIndex + 1] = (byte) (val >> 8);
            dst[dstIndex + 2] = (byte) (val >> 16);
            dst[dstIndex + 3] = (byte) (val >> 24);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
Back to top