Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 24 of 24 for regex (0.17 sec)

  1. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

        return try {
          URI(uri)
        } catch (e: URISyntaxException) {
          // Unlikely edge case: the URI has a forbidden character in the fragment. Strip it & retry.
          try {
            val stripped = uri.replace(Regex("[\\u0000-\\u001F\\u007F-\\u009F\\p{javaWhitespace}]"), "")
            URI.create(stripped)
          } catch (e1: Exception) {
            throw RuntimeException(e) // Unexpected!
          }
        }
      }
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  2. okhttp/src/main/kotlin/okhttp3/Cookie.kt

     * limitations under the License.
     */
    package okhttp3
    
    import java.util.Calendar
    import java.util.Collections
    import java.util.Date
    import java.util.GregorianCalendar
    import java.util.Locale
    import java.util.regex.Pattern
    import okhttp3.internal.UTC
    import okhttp3.internal.canParseAsIpAddress
    import okhttp3.internal.delimiterOffset
    import okhttp3.internal.http.MAX_DATE
    import okhttp3.internal.http.toHttpDateString
    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/test/java/okhttp3/CallTest.kt

        platform.assumeNotBouncyCastle()
    
        // The _anon_ suites became unsupported in "1.8.0_201" and "11.0.2".
        assumeFalse(
          System.getProperty("java.version", "unknown").matches(Regex("1\\.8\\.0_1\\d\\d")),
        )
        server.enqueue(MockResponse())
        val cipherSuite = CipherSuite.TLS_DH_anon_WITH_AES_128_GCM_SHA256
        val clientCertificates =
          HandshakeCertificates.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/OkHttpTest.kt

     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.matches
    import org.junit.jupiter.api.Test
    
    class OkHttpTest {
      @Test
      fun testVersion() {
        assertThat(OkHttp.VERSION).matches(Regex("[0-9]+\\.[0-9]+\\.[0-9]+(-.+)?"))
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Dec 21 01:54:49 GMT 2023
    - 848 bytes
    - Viewed (0)
Back to top