Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 23 of 23 for toRegex (0.17 sec)

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

        // https://tools.ietf.org/html/rfc7231#section-7.1.3
        // currently ignores a HTTP-date, and assumes any non int 0 is a delay
        if (header.matches("\\d+".toRegex())) {
          return Integer.valueOf(header)
        }
        return Integer.MAX_VALUE
      }
    
      companion object {
        /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12.1K bytes
    - Viewed (4)
  2. okhttp/src/main/kotlin/okhttp3/Cookie.kt

            return if (parsed <= 0L) Long.MIN_VALUE else parsed
          } catch (e: NumberFormatException) {
            // Check if the value is an integer (positive or negative) that's too big for a long.
            if (s.matches("-?\\d+".toRegex())) {
              return if (s.startsWith("-")) Long.MIN_VALUE else Long.MAX_VALUE
            }
            throw e
          }
        }
    
        /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

        @JvmField val MAGIC = "libcore.io.DiskLruCache"
    
        @JvmField val VERSION_1 = "1"
    
        @JvmField val ANY_SEQUENCE_NUMBER: Long = -1
    
        @JvmField val LEGAL_KEY_PATTERN = "[a-z0-9_-]{1,120}".toRegex()
    
        @JvmField val CLEAN = "CLEAN"
    
        @JvmField val DIRTY = "DIRTY"
    
        @JvmField val REMOVE = "REMOVE"
    
        @JvmField val READ = "READ"
      }
    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)
Back to top