Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for requestCount (0.97 sec)

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

        mockWebServer.setBodyLimit(0L)
        mockWebServer.setProtocolNegotiationEnabled(false)
        mockWebServer.setProtocols(listOf(Protocol.HTTP_1_1))
        var requestCount: Int = mockWebServer.getRequestCount()
      }
    
      @Test @Disabled
      fun multipartBody() {
        val multipartBody: MultipartBody = MultipartBody.Builder().build()
        val type: MediaType = multipartBody.type()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  2. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

              assertNotNull(it.cacheResponse)
              assertNull(it.networkResponse)
            }
    
          assertEquals(1, cache.hitCount())
          assertEquals(1, cache.networkCount())
          assertEquals(2, cache.requestCount())
        } finally {
          cache.delete()
        }
      }
    
      private fun OkHttpClient.get(url: String) {
        val request = Request.Builder().url(url).build()
        val response = this.newCall(request).execute()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 27K bytes
    - Viewed (1)
  3. mockwebserver-deprecated/api/mockwebserver.api

    	public final fun -deprecated_protocolNegotiationEnabled (Z)V
    	public final fun -deprecated_protocols ()Ljava/util/List;
    	public final fun -deprecated_protocols (Ljava/util/List;)V
    	public final fun -deprecated_requestCount ()I
    	public final fun -deprecated_serverSocketFactory (Ljavax/net/ServerSocketFactory;)V
    	public fun <init> ()V
    	public fun close ()V
    	public final fun enqueue (Lokhttp3/mockwebserver/MockResponse;)V
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jul 22 12:28:51 GMT 2023
    - 10.2K bytes
    - Viewed (0)
  4. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/KotlinSourceModernTest.kt

        mockWebServer.requireClientAuth()
        val request: RecordedRequest = mockWebServer.takeRequest()
        val nullableRequest: RecordedRequest? = mockWebServer.takeRequest(0L, TimeUnit.SECONDS)
        var requestCount: Int = mockWebServer.requestCount
        mockWebServer.enqueue(MockResponse())
        mockWebServer.start()
        mockWebServer.start(0)
        mockWebServer.start(InetAddress.getLocalHost(), 0)
        mockWebServer.shutdown()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.3K bytes
    - Viewed (1)
  5. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

      /**
       * The number of HTTP requests received thus far by this server. This may exceed the number of
       * HTTP connections when connection reuse is in practice.
       */
      val requestCount: Int
        get() = atomicRequestCount.get()
    
      /** The number of bytes of the POST body to keep in memory to the given limit. */
      var bodyLimit: Long = Long.MAX_VALUE
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  6. okhttp/api/okhttp.api

    	public final fun initialize ()V
    	public final fun isClosed ()Z
    	public static final fun key (Lokhttp3/HttpUrl;)Ljava/lang/String;
    	public final fun maxSize ()J
    	public final fun networkCount ()I
    	public final fun requestCount ()I
    	public final fun size ()J
    	public final fun urls ()Ljava/util/Iterator;
    	public final fun writeAbortCount ()I
    	public final fun writeSuccessCount ()I
    }
    
    public final class okhttp3/Cache$Companion {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 70.2K bytes
    - Viewed (0)
Back to top