Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 141 - 150 of 1,222 for rval (0.28 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/RouteFailureTest.kt

      @RegisterExtension
      val platform = PlatformRule()
    
      @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
      @StartStop
      val server1 = MockWebServer()
    
      @StartStop
      val server2 = MockWebServer()
    
      private var eventRecorder = EventRecorder()
    
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
    
      val dns = FakeDns()
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 11.6K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt

    import org.junit.jupiter.api.Test
    
    // Most tests from URLConnectionTest
    class JavaNetAuthenticatorTest {
      private var authenticator = JavaNetAuthenticator()
      private val fakeDns = FakeDns()
      private val recordingAuthenticator = RecordingAuthenticator()
      private val factory =
        TestValueFactory()
          .apply {
            dns = fakeDns
          }
    
      @BeforeEach
      fun setup() {
        Authenticator.setDefault(recordingAuthenticator)
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  3. build-logic/build-update-utils/src/main/kotlin/gradlebuild.wrapper.gradle.kts

        val wrapperTaskName = "${name}Wrapper"
        val configureWrapperTaskName = "configure${wrapperTaskName.capitalize()}"
    
        val wrapperTask = tasks.register<Wrapper>(wrapperTaskName) {
            dependsOn(configureWrapperTaskName)
            group = "wrapper"
        }
    
        tasks.register(configureWrapperTaskName) {
            doLast {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Sep 17 08:58:33 GMT 2024
    - 1.4K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/StatusLineTest.kt

      @Test
      fun parse() {
        val message = "Temporary Redirect"
        val version = 1
        val code = 200
        val statusLine = parse("HTTP/1.$version $code $message")
        assertThat(statusLine.message).isEqualTo(message)
        assertThat(statusLine.protocol).isEqualTo(Protocol.HTTP_1_1)
        assertThat(statusLine.code).isEqualTo(code)
      }
    
      @Test
      fun emptyMessage() {
        val version = 1
        val code = 503
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 3.5K bytes
    - Click Count (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/ResponseCommonTest.kt

    class ResponseCommonTest {
      @Test fun peekShorterThanResponse() {
        val response = newResponse(responseBody("abcdef"))
        val peekedBody = response.peekBody(3)
        assertThat(peekedBody.string()).isEqualTo("abc")
        assertThat(response.body.string()).isEqualTo("abcdef")
      }
    
      @Test fun peekLongerThanResponse() {
        val response = newResponse(responseBody("abc"))
        val peekedBody = response.peekBody(6)
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  6. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/action/AnnotationGeneratorWorkAction.kt

        interface AnnotationGeneratorParameters : WorkParameters {
            val packageName: Property<String>
            val destDir: DirectoryProperty
        }
    
        override fun execute() {
            val packageName = parameters.packageName.get()
            val sourceRootDirectory = parameters.destDir.get()
            val packageNamePath = packageName.replace(".", File.separator)
            val packageDirectory = sourceRootDirectory.file(packageNamePath).asFile
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Sun Jul 07 16:02:18 GMT 2024
    - 8.1K bytes
    - Click Count (0)
  7. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/TlsUtil.kt

        }
    
        // https://github.com/bcgit/bc-java/issues/1160
        val isBouncyCastle = keyStore.provider.name == "BC"
        val algorithm = if (isBouncyCastle) "PKIX" else KeyManagerFactory.getDefaultAlgorithm()
    
        val factory = KeyManagerFactory.getInstance(algorithm)
        factory.init(keyStore, password)
        val result = factory.keyManagers!!
        check(result.size == 1 && result[0] is X509KeyManager) {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 4.3K bytes
    - Click Count (1)
  8. samples/guide/src/main/java/okhttp3/recipes/kt/YubikeyClientAuth.kt

        val slot = 0
    
        val config = "--name=OpenSC\nlibrary=/Library/OpenSC/lib/opensc-pkcs11.so\nslot=$slot\n"
    
        // May fail with ProviderException with root cause like
        // sun.security.pkcs11.wrapper.PKCS11Exception: CKR_SLOT_ID_INVALID
        val pkcs11 = Security.getProvider("SunPKCS11").configure(config)
        Security.addProvider(pkcs11)
    
        val callbackHandler = ConsoleCallbackHandler
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat May 10 11:15:14 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartReader.kt

     *
     * Typical use loops over the parts in sequence:
     *
     * ```kotlin
     * val response: Response = call.execute()
     * val multipartReader = MultipartReader(response.body!!)
     *
     * multipartReader.use {
     *   while (true) {
     *     val part = multipartReader.nextPart() ?: break
     *     process(part.headers, part.body)
     *   }
     * }
     * ```
     *
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed May 28 02:11:14 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  10. internal/grid/types.go

    		if j.val != nil {
    			j.p.putA(j.val)
    		}
    		j.val = nil
    		return bytes, nil
    	}
    	l, bytes, err := msgp.ReadArrayHeaderBytes(bytes)
    	if err != nil {
    		return bytes, err
    	}
    	if j.val == nil {
    		j.val = j.p.newA(l)
    	} else {
    		j.val = j.val[:0]
    	}
    	for range l {
    		v := j.p.newE()
    		bytes, err = v.UnmarshalMsg(bytes)
    		if err != nil {
    			return bytes, err
    		}
    		j.val = append(j.val, v)
    	}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 15.5K bytes
    - Click Count (0)
Back to Top