Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 355 for comparison (0.06 sec)

  1. samples/tlssurvey/src/main/kotlin/okhttp3/survey/ssllabs/SslLabsApi.kt

     * limitations under the License.
     */
    package okhttp3.survey.ssllabs
    
    import retrofit2.http.GET
    
    interface SslLabsApi {
      @GET("getClients")
      suspend fun clients(): List<UserAgentCapabilities>
    
      companion object {
        const val BASE_URL = "https://api.ssllabs.com/api/v3/"
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Apr 02 01:44:15 UTC 2024
    - 844 bytes
    - Viewed (0)
  2. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

    import mockwebserver3.MockWebServer
    import mockwebserver3.junit5.StartStop
    import okhttp3.HttpUrl
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.OkHttpClient
    import okhttp3.OkHttpClientTestRule
    import okhttp3.Protocol
    import okhttp3.Request
    import okhttp3.RequestBody.Companion.toRequestBody
    import okhttp3.Response
    import okhttp3.TestUtil.assumeNotWindows
    import okhttp3.testing.PlatformRule
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  3. android-test-app/src/androidTest/kotlin/okhttp/android/testapp/IdnaTest.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.android
    
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import org.junit.Assert.assertEquals
    import org.junit.Test
    
    class IdnaTest {
      @Test
      fun testHostnameFunction() {
        assertEquals("xn--n3h.net", "https://☃.net/robots.txt".toHttpUrl().host)
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Aug 03 19:38:06 UTC 2025
    - 869 bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/UrlComponentEncodingTesterJvm.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3
    
    import assertk.fail
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
    import okhttp3.UrlComponentEncodingTester.Component
    
    fun urlComponentEncodingTesterJvmPlatform(component: Component): UrlComponentEncodingTester.Platform =
      when (component) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/MultipartReaderTest.kt

    import java.io.EOFException
    import java.net.ProtocolException
    import kotlin.test.assertFailsWith
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.MediaType.Companion.toMediaTypeOrNull
    import okhttp3.RequestBody.Companion.toRequestBody
    import okhttp3.ResponseBody.Companion.toResponseBody
    import okio.Buffer
    import okio.BufferedSink
    import org.junit.jupiter.api.Tag
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 02:11:14 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/CommonRequestBodyTest.kt

     * limitations under the License.
     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import kotlin.test.Test
    import okhttp3.RequestBody.Companion.toRequestBody
    
    class CommonRequestBodyTest {
      @Test
      fun correctContentType() {
        val body = "Body"
        val requestBody = body.toRequestBody(MediaType("text/plain", "text", "plain", arrayOf()))
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Credentials.kt

     * limitations under the License.
     */
    package okhttp3
    
    import java.nio.charset.Charset
    import kotlin.text.Charsets.ISO_8859_1
    import okio.ByteString.Companion.encode
    
    /** Factory for HTTP authorization credentials. */
    object Credentials {
      /** Returns an auth credential for the Basic scheme. */
      @JvmStatic @JvmOverloads
      fun basic(
        username: String,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RealResponseBody.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.http
    
    import okhttp3.MediaType
    import okhttp3.MediaType.Companion.toMediaTypeOrNull
    import okhttp3.ResponseBody
    import okio.BufferedSource
    
    class RealResponseBody(
      /**
       * Use a string to avoid parsing the content type until needed. This also defers problems caused
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/ResponseCommonTest.kt

    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import assertk.assertions.isNull
    import kotlin.test.Test
    import kotlin.test.assertFailsWith
    import okhttp3.ResponseBody.Companion.asResponseBody
    import okio.Buffer
    import okio.ByteString.Companion.EMPTY
    import okio.Source
    import okio.Timeout
    import okio.buffer
    
    class ResponseCommonTest {
      @Test fun peekShorterThanResponse() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/RealWebSocketTest.kt

    import okhttp3.FailingCall
    import okhttp3.Headers
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.Protocol
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.TestUtil.repeat
    import okhttp3.internal.concurrent.TaskFaker
    import okhttp3.internal.connection.BufferedSocket
    import okhttp3.internal.ws.WebSocketExtensions.Companion.parse
    import okio.BufferedSink
    import okio.BufferedSource
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 18.7K bytes
    - Viewed (0)
Back to top