Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 220 for OkHttp (0.15 sec)

  1. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

    import org.junit.jupiter.api.Test
    
    /**
     * Access every declaration that is deprecated with [DeprecationLevel.ERROR]. Although new Kotlin
     * code shouldn't use these, they're necessary for clients migrating from OkHttp 3.x and this test
     * ensures the symbols remain available and with the expected parameter and return types.
     */
    @Suppress(
      "DEPRECATION_ERROR",
      "UNUSED_VALUE",
      "UNUSED_VARIABLE",
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/RequestTest.kt

            .add("authorization", "peanutbutter")
            .add("proxy-authorization", "chocolate")
            .add("cookie", "drink=coffee")
            .add("set-cookie", "accessory=sugar")
            .add("user-agent", "OkHttp")
            .build()
        val request =
          Request(
            "https://square.com".toHttpUrl(),
            headers,
          )
        assertThat(request.toString()).isEqualTo(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

            initCause(e)
          }
        }
    
        // The following try/catch block is a pseudo hacky way to get around a crash on Android 7.0
        // More details:
        // https://github.com/square/okhttp/issues/3245
        // https://android-review.googlesource.com/#/c/271775/
        try {
          source = rawSocket.source().buffer()
          sink = rawSocket.sink().buffer()
        } catch (npe: NullPointerException) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt

       * particular, we set up this sequence of events:
       *
       *  1. take plan 0
       *  3. plan 0 connects
       *  4. finish taking plan 1
       *
       * https://github.com/square/okhttp/issues/7152
       */
      @Test
      fun reusePlanAndNewConnectRace() {
        val plan0 = routePlanner.addPlan()
        plan0.tcpConnectDelayNanos = 250.ms
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 24 04:40:49 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  5. pom.xml

    					<artifactId>bcprov-jdk15on</artifactId>
    				</exclusion>
    			</exclusions>
    		</dependency>
    		<dependency>
    			<groupId>com.squareup.okhttp3</groupId>
    			<artifactId>okhttp</artifactId>
    			<version>${okhttp.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>org.codelibs</groupId>
    			<artifactId>java-saml</artifactId>
    			<version>${java.saml.version}</version>
    			<exclusions>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 26 02:16:03 UTC 2024
    - 49.1K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

      /**
       * Webservers may set the initial window size to zero, which is a special case because it means
       * that we have to flush headers immediately before any request body can be sent.
       * https://github.com/square/okhttp/issues/2543
       */
      @Test fun peerSetsZeroFlowControl() {
        peer.setClient(true)
    
        // Write the mocking script.
        peer.sendFrame().settings(Settings().set(Settings.INITIAL_WINDOW_SIZE, 0))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

     * scheme's default is used.
     *
     * ### Path
     *
     * The path identifies a specific resource on the host. Paths have a hierarchical structure like
     * "/square/okhttp/issues/1486" and decompose into a list of segments like `["square", "okhttp",
     * "issues", "1486"]`.
     *
     * This class offers methods to compose and decompose paths by segment. It composes each path
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 63.5K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt

        assertBytes(0x02, 3, 'P'.code, 'U'.code, 'T'.code)
        assertThat(hpackWriter!!.headerCount).isEqualTo(0)
        hpackWriter!!.writeHeaders(headerEntries(":path", "/okhttp"))
        assertBytes(0x04, 7, '/'.code, 'o'.code, 'k'.code, 'h'.code, 't'.code, 't'.code, 'p'.code)
        assertThat(hpackWriter!!.headerCount).isEqualTo(0)
      }
    
      @Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/EventListenerTest.kt

       * the same delays make it back into the events.
       *
       * We've had bugs where we report an event when we request data rather than when the data actually
       * arrives. https://github.com/square/okhttp/issues/5578
       */
      private fun timeToFirstByte() {
        val applicationInterceptorDelay = 250L
        val networkInterceptorDelay = 250L
        val requestBodyDelay = 250L
        val responseHeadersStartDelay = 250L
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 56.9K bytes
    - Viewed (2)
  10. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        assertAbsent("c")
        assertAbsent("d")
      }
    
      /**
       * We had a bug where the cache was left in an inconsistent state after a journal write failed.
       * https://github.com/square/okhttp/issues/1211
       */
      @ParameterizedTest
      @ArgumentsSource(FileSystemParamProvider::class)
      fun journalWriteFailsDuringEditorCommit(parameters: Pair<FileSystem, Boolean>) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 75.8K bytes
    - Viewed (0)
Back to top