Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 299 for behaviour (0.09 seconds)

  1. regression-test/src/androidTest/java/okhttp/regression/compare/ApacheHttpClientHttp2Test.kt

    /**
     * Simplified from
     * https://hc.apache.org/httpcomponents-client-5.0.x/httpclient5/examples/AsyncClientTlsAlpn.java
     *
     * Mainly intended to verify behaviour of popular clients across Android versions, similar
     * to observing Firefox or Chrome browser behaviour.
     */
    @Ignore("Failing with Netty errors")
    class ApacheHttpClientHttp2Test {
      @Test
      fun testHttp2() {
        val client = HttpAsyncClients.createHttp2Default()
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Feb 07 06:56:34 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/net/UrlEscaperTesting.java

     *
     * @author David Beaumont
     */
    @GwtCompatible
    @NullUnmarked
    final class UrlEscaperTesting {
      /**
       * Helper to assert common expected behaviour of uri escapers. You should call
       * assertBasicUrlEscaper() unless the escaper explicitly does not escape '%'.
       */
      @SuppressWarnings("nullness") // test of a bogus call
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  3. docs/features/caching.md

    Caching
    =======
    
    OkHttp implements an optional, off by default, Cache. OkHttp aims for RFC correct and
    pragmatic caching behaviour, following common real-world browser like Firefox/Chrome and
    server behaviour when ambiguous.
    
    # Basic Usage
    
    ```kotlin
      private val client: OkHttpClient = OkHttpClient.Builder()
          .cache(Cache(
              directory = File(application.cacheDir, "http_cache"),
              // $0.05 worth of phone storage in 2020
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:01:42 GMT 2026
    - 3.1K bytes
    - Click Count (1)
  4. android/guava-tests/test/com/google/common/net/UrlEscaperTesting.java

     *
     * @author David Beaumont
     */
    @GwtCompatible
    @NullUnmarked
    final class UrlEscaperTesting {
      /**
       * Helper to assert common expected behaviour of uri escapers. You should call
       * assertBasicUrlEscaper() unless the escaper explicitly does not escape '%'.
       */
      @SuppressWarnings("nullness") // test of a bogus call
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  5. samples/compare/src/test/kotlin/okhttp3/compare/ApacheHttpClientTest.kt

    import org.junit.jupiter.api.Test
    
    /**
     * Apache HttpClient 5.x.
     *
     * https://hc.apache.org/httpcomponents-client-5.0.x/index.html
     *
     * Baseline test if we ned to validate OkHttp behaviour against other popular clients.
     */
    class ApacheHttpClientTest {
      private val httpClient = HttpClients.createDefault()
    
      @StartStop
      private val server = MockWebServer()
    
      @AfterEach
      fun tearDown() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Feb 04 20:23:14 GMT 2026
    - 2.3K bytes
    - Click Count (0)
  6. samples/compare/src/test/kotlin/okhttp3/compare/JavaHttpClientTest.kt

    import org.junit.jupiter.api.extension.RegisterExtension
    
    /**
     * Java HTTP Client.
     *
     * https://openjdk.java.net/groups/net/httpclient/intro.html
     *
     * Baseline test if we ned to validate OkHttp behaviour against other popular clients.
     */
    class JavaHttpClientTest {
      @JvmField @RegisterExtension
      val platform = PlatformRule()
    
      @StartStop
      private val server = MockWebServer()
    
      @Test fun get() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Jan 25 13:16:02 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  7. architecture/standards/0009-use-american-english.md

    ### Examples
    
    Use American English spelling, for example:
    
    * `color` (not `colour`)
    * `initialize` (not `initialise`)
    * `behavior` (not `behaviour`)
    * `analyze` (not `analyse`)
    * `organization` (not `organisation`)
    * `center` (not `centre`)
    * `canceled` (not `cancelled`)
    * `labeled` (not `labelled`)
    
    ### Rationale for American English
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Mar 05 12:39:41 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  8. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java

      }
    
      static <E extends @Nullable Object> Set<E> newConcurrentHashSet() {
        // GWT's ConcurrentHashMap is a wrapper around HashMap, but it rejects null keys, which matches
        // the behaviour of the non-GWT implementation of newConcurrentHashSet().
        // On the other hand HashSet might be better for code size if apps aren't
        // already using Collections.newSetFromMap and ConcurrentHashMap.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jan 23 17:16:53 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/escape/UnicodeEscaper.java

       *
       * <p>Unlike {@link Character#codePointAt(CharSequence, int)} or {@link String#codePointAt(int)}
       * this method will never fail silently when encountering an invalid surrogate pair.
       *
       * <p>The behaviour of this method is as follows:
       *
       * <ol>
       *   <li>If {@code index >= end}, {@link IndexOutOfBoundsException} is thrown.
       *   <li><b>If the character at the specified index is not a surrogate, it is returned.</b>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Jan 24 04:06:11 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/Constants.java

         */
        @Config(defaultValue = "false")
        public static final String MAVEN_REPO_LOCAL_RECORD_REVERSE_TREE = "maven.repo.local.recordReverseTree";
    
        /**
         * User property for selecting dependency manager behaviour regarding transitive dependencies and dependency
         * management entries in their POMs. Maven 3 targeted full backward compatibility with Maven 2. Hence, it ignored
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Dec 16 13:41:14 GMT 2025
    - 28.7K bytes
    - Click Count (0)
Back to Top