Search Options

Results per page
Sort
Preferred Languages
Advance

Results 481 - 490 of 889 for Eval (0.03 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http/StatusLine.kt

    import okhttp3.Protocol
    import okhttp3.Response
    import okio.IOException
    
    /** An HTTP response status line like "HTTP/1.1 200 OK". */
    class StatusLine(
      @JvmField val protocol: Protocol,
      @JvmField val code: Int,
      @JvmField val message: String,
    ) {
      override fun toString(): String {
        return buildString {
          if (protocol == Protocol.HTTP_1_0) {
            append("HTTP/1.0")
          } else {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. okhttp-android/src/main/kotlin/okhttp3/android/AndroidAsyncDns.kt

     */
    @RequiresApi(Build.VERSION_CODES.Q)
    @ExperimentalOkHttpApi
    class AndroidAsyncDns(
      private val dnsClass: AsyncDns.DnsClass,
      private val network: Network? = null,
    ) : AsyncDns {
      @RequiresApi(Build.VERSION_CODES.Q)
      internal val resolver = DnsResolver.getInstance()
      private val executor = Executors.newSingleThreadExecutor()
    
      override fun query(
        hostname: String,
        callback: AsyncDns.Callback,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 10:07:48 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateReleasedVersions.kt

    abstract class UpdateReleasedVersions : DefaultTask() {
    
        @get:Internal
        abstract val releasedVersionsFile: RegularFileProperty
    
        @get:Internal
        abstract val currentReleasedVersion: Property<ReleasedVersion>
    
        @TaskAction
        fun updateVersions() {
            val currentReleasedVersionValue = currentReleasedVersion.get()
            val releasedVersionsFileObject = releasedVersionsFile.get().asFile
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Jul 07 13:12:26 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  4. build-logic/buildquality/src/main/kotlin/gradlebuild.configure-ci-artifacts.gradle.kts

    if (BuildEnvironment.isCiServer && project.name != "gradle-kotlin-dsl-accessors") {
        val globalExtension = rootProject.extensions.getByType<TestFilesCleanupBuildServiceRootExtension>()
        project.gradle.taskGraph.whenReady {
            val allTasks = ******@****.***ks
            val taskPathToReports = allTasks.associate { it.path to it.customReports() + it.attachedReportLocations() }.filter { it.value.isNotEmpty() }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Sep 11 14:21:47 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. 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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http1/HeadersReader.kt

      fun readHeaders(): Headers {
        val result = Headers.Builder()
        while (true) {
          val line = readLine()
          if (line.isEmpty()) break
          result.addLenient(line)
        }
        return result.build()
      }
    
      companion object {
        private const val HEADER_LIMIT = 256 * 1024
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. buildSrc/src/main/kotlin/AlpnVersions.kt

     * https://github.com/xjdr/xio/blob/master/alpn-boot.gradle
     */
    fun alpnBootVersion(): String? {
      val version = System.getProperty("alpn.boot.version")
    
      if (version != null) {
        return version
      }
    
      val javaVersion = System.getProperty("java.version")
      val match = "1\\.8\\.0_(\\d+)(-.*)?".toRegex().find(javaVersion) ?: return null
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 07 16:05:34 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/LoomTest.kt

    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    
    class LoomTest {
      @JvmField
      @RegisterExtension
      val platform = PlatformRule()
    
      @JvmField
      @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
      private lateinit var server: MockWebServer
    
      private lateinit var client: OkHttpClient
    
      @BeforeEach
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. native-image-tests/src/main/kotlin/okhttp3/SampleTest.kt

    class SampleTest {
      @JvmField @RegisterExtension
      val clientRule = OkHttpClientTestRule()
    
      @Test
      fun passingTest() {
        assertThat("hello").isEqualTo("hello")
      }
    
      @Test
      fun testMockWebServer(server: MockWebServer) {
        server.enqueue(MockResponse(body = "abc"))
    
        val client = clientRule.newClient()
    
        client.newCall(Request(url = server.url("/"))).execute().use {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/tasks/IncubatingApiAggregateReportTask.kt

    abstract class IncubatingApiAggregateReportTask : DefaultTask() {
    
        @get:InputFiles
        @get:PathSensitive(PathSensitivity.RELATIVE)
        abstract val reports: ConfigurableFileCollection
    
        @get:OutputFile
        abstract val htmlReportFile: RegularFileProperty
    
        @get:Inject
        abstract val workerExecutor: WorkerExecutor
    
        @TaskAction
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Jan 30 09:32:11 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top