Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for compact (0.22 sec)

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

     *   }
     * ```
     */
    fun interface Interceptor {
      @Throws(IOException::class)
      fun intercept(chain: Chain): Response
    
      companion object {
        /**
         * Constructs an interceptor for a lambda. This compact syntax is most useful for inline
         * interceptors.
         *
         * ```kotlin
         * val interceptor = Interceptor { chain: Interceptor.Chain ->
         *     chain.proceed(chain.request())
         * }
         * ```
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/idn/IdnaMappingTableTest.kt

    import okio.FileSystem
    import okio.Path.Companion.toPath
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Test
    
    /** Confirm we get the expected table whether we build it from the .txt file or compact that. */
    class IdnaMappingTableTest {
      private lateinit var table: SimpleIdnaMappingTable
      private lateinit var compactTable: IdnaMappingTable
    
      @BeforeEach
      fun setUp() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  3. samples/compare/src/test/kotlin/okhttp3/compare/ApacheHttpClientTest.kt

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.compare
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import assertk.assertions.startsWith
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  4. regression-test/src/androidTest/java/okhttp/regression/compare/ApacheHttpClientHttp2Test.kt

     * individuals on behalf of the Apache Software Foundation.  For more
     * information on the Apache Software Foundation, please see
     * <http://www.apache.org/>.
     *
     */
    package okhttp.regression.compare
    
    import org.apache.hc.client5.http.async.methods.SimpleHttpRequests
    import org.apache.hc.client5.http.async.methods.SimpleHttpResponse
    import org.apache.hc.client5.http.impl.async.HttpAsyncClients
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  5. samples/compare/src/test/kotlin/okhttp3/compare/JavaHttpClientTest.kt

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.compare
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import assertk.assertions.isNotNull
    import assertk.assertions.isNull
    import assertk.assertions.matches
    import java.net.http.HttpClient
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  6. docs/changelogs/changelog_4x.md

    
    ## Version 4.3.0
    
    _2019-12-31_
    
     *  Fix: Degrade HTTP/2 connections after a timeout. When an HTTP/2 stream times out it may impact
        the stream only or the entire connection. With this fix OkHttp will now send HTTP/2 pings after
        a stream timeout to determine whether the connection should remain eligible for pooling.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  7. docs/contribute/code_of_conduct.md

    emailing [******@****.***][codeofconduct_at]. All reports will be handled with
    discretion.
    
    In your report please include:
    
     * Your contact information.
     * Names (real, nicknames, or pseudonyms) of any individuals involved. If there are additional
       witnesses, please include them as well.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 5.1K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

        return false
      }
      for (a in this) {
        for (b in other) {
          if (comparator.compare(a, b) == 0) {
            return true
          }
        }
      }
      return false
    }
    
    internal fun Array<String>.indexOf(
      value: String,
      comparator: Comparator<String>,
    ): Int = indexOfFirst { comparator.compare(it, value) == 0 }
    
    @Suppress("UNCHECKED_CAST")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskQueue.kt

          }
        }
    
        // Insert in chronological order. Always compare deltas because nanoTime() is permitted to wrap.
        var insertAt = futureTasks.indexOfFirst { it.nextExecuteNanoTime - now > delayNanos }
        if (insertAt == -1) insertAt = futureTasks.size
        futureTasks.add(insertAt, task)
    
        // Impact the coordinator if we inserted at the front.
        return insertAt == 0
      }
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  10. docs/changelogs/changelog_3x.md

        regression that was introduced in OkHttp 3.14.5.
    
    
    ## Version 3.14.5
    
    _2020-01-03_
    
     *  Fix: Degrade HTTP/2 connections after a timeout. When an HTTP/2 stream times out it may impact
        the stream only or the entire connection. With this fix OkHttp will now send HTTP/2 pings after
        a stream timeout to determine whether the connection should remain eligible for pooling.
    
    
    ## Version 3.14.4
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
Back to top