Search Options

Results per page
Sort
Preferred Languages
Advance

Results 541 - 550 of 659 for val (0.02 sec)

  1. mockwebserver/src/main/kotlin/mockwebserver3/MockResponseBody.kt

     * called by readers.
     */
    public interface MockResponseBody {
      /** The length of this response in bytes, or -1 if unknown. */
      public val contentLength: Long
    
      @Throws(IOException::class)
      public fun writeTo(sink: BufferedSink)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 14 16:09:26 UTC 2025
    - 1K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/idn/PunycodeTest.kt

      /**
       * It's invalid to have a label longer than 63 characters. If that's requested, the encoder may
       * overflow and return null.
       */
      @Test fun overflowEncodingOversizedLabel() {
        val a1000 = "a".repeat(1000)
        val a1000MaxCodePoint = a1000 + "\udbff\udfff"
        testEncodeDecode(
          a1000MaxCodePoint,
          "xn--$a1000-nc89312g",
        )
        assertNull(
          Punycode.encode(a1000MaxCodePoint.repeat(2)),
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. mockwebserver-junit5/src/main/kotlin/mockwebserver3/junit5/StartStop.kt

     * field with the `@StartStop` annotation:
     *
     * ```java
     * @StartStop public final MockWebServer server = new MockWebServer();
     * ```
     *
     * Or for Kotlin:
     *
     * ```kotlin
     * @StartStop val server = MockWebServer()
     * ```
     */
    @Target(AnnotationTarget.FIELD)
    @Retention(AnnotationRetention.RUNTIME)
    @ExtendWith(StartStopExtension::class)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jun 19 11:44:16 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  4. okhttp-brotli/src/main/kotlin/okhttp3/brotli/BrotliInterceptor.kt

     */
    object BrotliInterceptor : CompressionInterceptor(Brotli, Gzip)
    
    object Brotli : CompressionInterceptor.DecompressionAlgorithm {
      override val encoding: String get() = "br"
    
      override fun decompress(compressedSource: BufferedSource): Source = BrotliInputStream(compressedSource.inputStream()).source()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Aug 01 06:04:22 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  5. .teamcity/src/main/kotlin/configurations/VcsTriggers.kt

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package configurations
    
    val triggerExcludes =
        """
        -:.idea
        -:.github
        -:.teamcity
        -:platforms/documentation/docs/src/docs/release
        """.trimIndent()
    
    fun branchesFilterExcluding(vararg excludedBranch: String) =
        """
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Wed Feb 12 09:12:03 UTC 2025
    - 913 bytes
    - Viewed (0)
  6. regression-test/src/androidTest/java/okhttp/regression/compare/ApacheHttpClientTest.kt

     */
    @RunWith(AndroidJUnit4::class)
    class ApacheHttpClientTest {
      private var httpClient = HttpClients.createDefault()
    
      @After fun tearDown() {
        httpClient.close()
      }
    
      @Test fun get() {
        val request = HttpGet("https://google.com/robots.txt")
    
        httpClient.execute(request).use { response ->
          assertEquals(200, response.code)
          // TODO enable ALPN later
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. .teamcity/src/main/kotlin/common/BuildScanUtils.kt

            .values()
            .slice(this.stageName.ordinal until StageName.READY_FOR_RELEASE.ordinal + 1)
            .map { it.uuid }
    
    fun Stage.getBuildScanCustomValueParam(testCoverage: TestCoverage? = null): String {
        val customValues =
            if (testCoverage != null) {
                listOf(testCoverage.asBuildScanCustomValue()) + getBuildScanCustomValues()
            } else {
                getBuildScanCustomValues()
            }
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Tue Jun 10 05:45:46 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ForceConnectRoutePlanner.kt

     */
    package okhttp3.internal.connection
    
    /**
     * A RoutePlanner that will always establish a new connection, ignoring any connection pooling
     */
    class ForceConnectRoutePlanner(
      private val delegate: RealRoutePlanner,
    ) : RoutePlanner by delegate {
      override fun plan(): RoutePlanner.Plan = delegate.planConnect() // not delegate.plan()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 937 bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/InetAddressOrder.kt

     *
     * https://datatracker.ietf.org/doc/html/rfc8305#section-4
     */
    internal fun reorderForHappyEyeballs(addresses: List<InetAddress>): List<InetAddress> {
      if (addresses.size < 2) {
        return addresses
      }
    
      val (ipv6, ipv4) = addresses.partition { it is Inet6Address }
    
      return if (ipv6.isEmpty() || ipv4.isEmpty()) {
        addresses
      } else {
        interleave(ipv6, ipv4)
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Apr 24 15:15:15 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  10. .teamcity/src/main/kotlin/promotion/MergeReleaseIntoMaster.kt

    object MergeReleaseIntoMaster : BasePromotionBuildType() {
        init {
            id("Promotion_MergeReleaseIntoMaster")
            name = "Merge Release into Master"
            description = "Merge Release into Master"
    
            val vcsBranch = VersionedSettingsBranch.fromDslContext()
    
            steps {
                gradleWrapper {
                    name = "Merge Release into Master"
                    tasks =
                        listOf(
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Tue Jun 10 10:38:00 UTC 2025
    - 2.3K bytes
    - Viewed (0)
Back to top