Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for year (0.18 sec)

  1. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

          .isEqualTo(date("1992-06-22T12:34:21.000+0000").time)
        assertThat(Adapters.parseUtcTime("920722132100Z"))
          .isEqualTo(date("1992-07-22T13:21:00.000+0000").time)
      }
    
      @Test fun `decode utc time two digit year cutoff is 1950`() {
        assertThat(Adapters.parseUtcTime("500101000000Z"))
          .isEqualTo(date("1950-01-01T00:00:00.000+0000").time)
        assertThat(Adapters.parseUtcTime("500101010000Z"))
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 31.7K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/Cookie.kt

              }
              year == -1 && matcher.usePattern(YEAR_PATTERN).matches() -> {
                year = matcher.group(1).toInt()
              }
            }
    
            pos = dateCharacterOffset(s, end + 1, limit, false)
          }
    
          // Convert two-digit years into four-digit years. 99 becomes 1999, 15 becomes 2015.
          if (year in 70..99) year += 1900
          if (year in 0..69) year += 2000
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http/DateFormatting.kt

    import java.text.DateFormat
    import java.text.ParsePosition
    import java.text.SimpleDateFormat
    import java.util.Date
    import java.util.Locale
    import okhttp3.internal.UTC
    
    /** The last four-digit year: "Fri, 31 Dec 9999 23:59:59 GMT". */
    internal const val MAX_DATE = 253402300799999L
    
    /**
     * Most websites serve cookies in the blessed format. Eagerly create the parser to ensure such
     * cookies are on the fast path.
     */
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

                value: String,
              ) = writer.writeUtf8(value)
            },
        )
    
      /**
       * A timestamp like "191216030210Z" or "191215190210-0800" for 2019-12-15T19:02:10-08:00. The
       * cutoff of the 2-digit year is 1950-01-01T00:00:00Z.
       */
      val UTC_TIME =
        BasicDerAdapter(
          name = "UTC TIME",
          tagClass = DerHeader.TAG_CLASS_UNIVERSAL,
          tag = 23L,
          codec =
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt

       *   generalTime    GeneralizedTime
       * }
       * ```
       *
       * RFC 5280, section 4.1.2.5:
       *
       * > CAs conforming to this profile MUST always encode certificate validity dates through the year
       * > 2049 as UTCTime; certificate validity dates in 2050 or later MUST be encoded as
       * > GeneralizedTime.
       */
      internal val time: DerAdapter<Long> =
        object : DerAdapter<Long> {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.6K bytes
    - Viewed (1)
  6. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

      /**
       * The reason why this stream was closed, or null if it closed normally or has not yet been
       * closed.
       *
       * If there are multiple reasons to abnormally close this stream (such as both peers closing it
       * near-simultaneously) then this is the first reason known to this peer.
       */
      internal var errorCode: ErrorCode? = null
        get() = this.withLock { field }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  7. samples/tlssurvey/src/main/kotlin/okhttp3/survey/RunSurvey.kt

      val survey = CipherSuiteSurvey(clients = clients, ianaSuites = ianaSuitesNew, orderBy = orderBy)
    
      survey.printGoogleSheet()
    }
    
    fun rest(clients: List<Client>): List<SuiteId> {
      // combine all ciphers to get these near the top
      return clients.flatMap { it.enabled }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  8. okhttp-idna-mapping-table/src/main/resources/okhttp3/internal/idna/IdnaMappingTable.txt

    A64F          ; valid                                  # 5.1  CYRILLIC SMALL LETTER NEUTRAL YER
    A650          ; mapped                 ; A651          # 5.1  CYRILLIC CAPITAL LETTER YERU WITH BACK YER
    A651          ; valid                                  # 5.1  CYRILLIC SMALL LETTER YERU WITH BACK YER
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Feb 10 11:25:47 GMT 2024
    - 854.1K bytes
    - Viewed (2)
  9. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

          return -1L
        }
      }
    
      companion object {
        private val ONLY_HTTP1 = listOf(Protocol.HTTP_1_1)
    
        /**
         * The maximum number of bytes to enqueue. Rather than enqueueing beyond this limit we tear down
         * the web socket! It's possible that we're writing faster than the peer can read.
         */
        private const val MAX_QUEUE_SIZE = 16L * 1024 * 1024 // 16 MiB.
    
        /**
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
Back to top