Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for Constant (0.47 sec)

  1. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappedRange.kt

     * limitations under the License.
     */
    package okhttp3.internal.idn
    
    import kotlin.math.abs
    import okio.ByteString
    
    internal sealed interface MappedRange {
      val rangeStart: Int
    
      data class Constant(
        override val rangeStart: Int,
        val type: Int,
      ) : MappedRange {
        val b1: Int
          get() =
            when (type) {
              TYPE_IGNORED -> 119
              TYPE_VALID -> 120
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  2. docs/changelogs/changelog_4x.md

     *  New: Add `cacheHit`, `cacheMiss`, and `cacheConditionalHit()` events to `EventListener`. Use
        these in logs, metrics, and even test cases to confirm your cache headers are configured as
        expected.
    
     *  New: Constant string `okhttp3.VERSION`. This is a string like "4.5.0-RC1", "4.5.0", or
        "4.6.0-SNAPSHOT" indicating the version of OkHttp in the current runtime. Use this to include
        the OkHttp version in custom `User-Agent` headers.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  3. docs/contribute/concurrency.md

    We can't rely on application threads to read data from the socket. Application threads are transient: sometimes they're reading and writing and sometimes they're off doing application-layer things. But the socket is permanent, and it needs constant attention: we dispatch all incoming frames so the connection is good-to-go when the application layer needs it.
    
    So we have a dedicated thread for every socket that just reads frames and dispatches them.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 16:35:36 GMT 2022
    - 7K bytes
    - Viewed (0)
  4. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappingTables.kt

        sectionIndexBuffer.writeByte(sectionOffset and 0x7f)
    
        // Ranges.
        for (range in sectionMappedRanges) {
          rangesBuffer.writeByte(range.rangeStart)
    
          when (range) {
            is MappedRange.Constant -> {
              rangesBuffer.writeByte(range.b1)
              rangesBuffer.writeByte('-'.code)
              rangesBuffer.writeByte('-'.code)
            }
            is MappedRange.Inline1 -> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

          }
    
          // If this response shouldn't have been stored, it should never be used as a response source.
          // This check should be redundant as long as the persistence store is well-behaved and the
          // rules are constant.
          if (!isCacheable(cacheResponse, request)) {
            return CacheStrategy(request, null)
          }
    
          val requestCaching = request.cacheControl
          if (requestCaching.noCache || hasConditions(request)) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12K bytes
    - Viewed (0)
  6. docs/changelogs/changelog_3x.md

        Module System.
     *  New: Log gzipped bodies when `HttpLoggingInterceptor` is used as a network
        interceptor.
     *  New: `Protocol.QUIC` constant. This protocol is not supported but this
        constant is included for completeness.
     *  New: Upgrade to Okio 1.14.0.
    
         ```xml
         <dependency>
           <groupId>com.squareup.okio</groupId>
           <artifactId>okio</artifactId>
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/Headers.kt

       * either the field is absent or cannot be parsed as a date.
       */
      @IgnoreJRERequirement // Only programs that already have Instant will use this.
      fun getInstant(name: String): Instant? {
        return getDate(name)?.toInstant()
      }
    
      /** Returns the number of field values. */
      @get:JvmName("size")
      val size: Int
        get() = namesAndValues.size / 2
    
      @JvmName("-deprecated_size")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

       *     READ 335c4c6028171cfddfbaae1a9c313c52
       *     READ 3400330d1dfc7f3f7f4b8d4d803dfcf6
       *
       * The first five lines of the journal form its header. They are the constant string
       * "libcore.io.DiskLruCache", the disk cache's version, the application's version, the value
       * count, and a blank line.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/Cache.kt

     *     .url("http://publicobject.com/helloworld.txt")
     *     .build();
     * ```
     *
     * The [CacheControl] class can configure request caching directives and parse response caching
     * directives. It even offers convenient constants [CacheControl.FORCE_NETWORK] and
     * [CacheControl.FORCE_CACHE] that address the use cases above.
     *
     * [rfc_7234]: http://tools.ietf.org/html/rfc7234
     */
    class Cache internal constructor(
      directory: Path,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  10. okhttp-android/src/main/baseline-prof.txt

    HSPLandroidx/lifecycle/ReportFragment;->onActivityCreated(Landroid/os/Bundle;)V
    HSPLandroidx/lifecycle/ReportFragment;->onResume()V
    HSPLandroidx/lifecycle/ReportFragment;->onStart()V
    HSPLandroidx/lifecycle/runtime/R$id;->iterator([Ljava/lang/Object;)Ljava/util/Iterator;
    HSPLandroidx/lifecycle/runtime/R$id;->toCanonicalHost(Ljava/lang/String;)Ljava/lang/String;
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Mar 21 11:22:00 GMT 2022
    - 127.9K bytes
    - Viewed (0)
Back to top