Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 517 for jconst (0.12 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

      }
    
      companion object {
        const val OKHTTP_CLIENT_WINDOW_SIZE = 16 * 1024 * 1024
    
        val DEFAULT_SETTINGS =
          Settings().apply {
            set(Settings.INITIAL_WINDOW_SIZE, DEFAULT_INITIAL_WINDOW_SIZE)
            set(Settings.MAX_FRAME_SIZE, Http2.INITIAL_MAX_FRAME_SIZE)
          }
    
        const val INTERVAL_PING = 1
        const val DEGRADED_PING = 2
        const val AWAIT_PING = 3
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-MediaTypeCommon.kt

    internal fun MediaType.commonToString(): String = mediaType
    
    internal fun MediaType.commonHashCode(): Int = mediaType.hashCode()
    
    private const val TOKEN = "([a-zA-Z0-9-!#$%&'*+.^_`{|}~]+)"
    private const val QUOTED = "\"([^\"]*)\""
    private val TYPE_SUBTYPE = Regex("$TOKEN/$TOKEN")
    private val PARAMETER = Regex(";\\s*(?:$TOKEN=(?:$TOKEN|$QUOTED))?")
    
    /**
     * Returns a media type for this string.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/AsyncDns.kt

       */
      @ExperimentalOkHttpApi
      enum class DnsClass(val type: Int) {
        IPV4(TYPE_A),
        IPV6(TYPE_AAAA),
      }
    
      @ExperimentalOkHttpApi
      companion object {
        const val TYPE_A = 1
        const val TYPE_AAAA = 28
    
        /**
         * Adapt an AsyncDns implementation to Dns, waiting until onComplete is received
         * and returning results if available.
         */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-v2_string.go

    	// Re-run the stringer command to generate them again.
    	var x [1]struct{}
    	_ = x[invalidVersionType-0]
    	_ = x[ObjectType-1]
    	_ = x[DeleteType-2]
    	_ = x[LegacyType-3]
    	_ = x[lastVersionType-4]
    }
    
    const _VersionType_name = "invalidVersionTypeObjectTypeDeleteTypeLegacyTypelastVersionType"
    
    var _VersionType_index = [...]uint8{0, 18, 28, 38, 48, 63}
    
    func (i VersionType) String() string {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Dec 02 19:29:16 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  5. cmd/dynamic-timeouts_test.go

    					panic(to)
    				}
    			}
    		}()
    	}
    	wg.Wait()
    }
    
    func TestDynamicTimeoutHitMinimum(t *testing.T) {
    	const minimum = 30 * time.Second
    	timeout := newDynamicTimeout(time.Minute, minimum)
    
    	initial := timeout.Timeout()
    
    	const successTimeout = 20 * time.Second
    	for l := 0; l < 100; l++ {
    		for i := 0; i < dynamicTimeoutLogSize; i++ {
    			timeout.LogSuccess(successTimeout)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 14 10:08:40 UTC 2022
    - 5.4K bytes
    - Viewed (0)
  6. internal/ringbuffer/ring_buffer_benchmark_test.go

    	go func() {
    		for {
    			rb.Read(buf)
    		}
    	}()
    
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		rb.Write(data)
    	}
    }
    
    func BenchmarkRingBuffer_AsyncReadBlocking(b *testing.B) {
    	const sz = 512
    	const buffers = 10
    	rb := New(sz * buffers)
    	rb.SetBlocking(true)
    	data := []byte(strings.Repeat("a", sz))
    	buf := make([]byte, sz)
    
    	go func() {
    		for {
    			rb.Read(buf)
    		}
    	}()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. cmd/erasure-encode_test.go

    func BenchmarkErasureEncodeQuick(b *testing.B) {
    	const size = 12 * 1024 * 1024
    	b.Run(" 00|00 ", func(b *testing.B) { benchmarkErasureEncode(2, 2, 0, 0, size, b) })
    	b.Run(" 00|X0 ", func(b *testing.B) { benchmarkErasureEncode(2, 2, 0, 1, size, b) })
    	b.Run(" X0|00 ", func(b *testing.B) { benchmarkErasureEncode(2, 2, 1, 0, size, b) })
    }
    
    func BenchmarkErasureEncode_4_64KB(b *testing.B) {
    	const size = 64 * 1024
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

        companion object {
          const val PROPERTY_NAME = "okhttp.platform"
          const val CONSCRYPT_PROPERTY = "conscrypt"
          const val CORRETTO_PROPERTY = "corretto"
          const val JDK9_PROPERTY = "jdk9"
          const val JDK8_ALPN_PROPERTY = "jdk8alpn"
          const val JDK8_PROPERTY = "jdk8"
          const val OPENJSSE_PROPERTY = "openjsse"
          const val BOUNCYCASTLE_PROPERTY = "bouncycastle"
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  9. cmd/xl-storage-format-v1.go

    package cmd
    
    import (
    	"encoding/binary"
    	"encoding/hex"
    	"encoding/json"
    	"fmt"
    	"time"
    
    	"github.com/cespare/xxhash/v2"
    	jsoniter "github.com/json-iterator/go"
    )
    
    // XL constants.
    const (
    	// XL metadata file carries per object metadata.
    	xlStorageFormatFileV1 = "xl.json"
    )
    
    // Valid - tells us if the format is sane by validating
    // format version and erasure coding information.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/osgi/OsgiTest.kt

            "com.squareup.okhttp3.urlconnection",
          )
    
        /** Equinox must also be on the testing classpath.  */
        private const val RESOLVE_OSGI_FRAMEWORK = "org.eclipse.osgi"
        private const val RESOLVE_JAVA_VERSION = "JavaSE-1.8"
        private const val REPO_NAME = "OsgiTest"
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top