Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for Requestbodys (0.07 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

            .Builder()
            .url(server.url("/"))
            .method("POST", requestBody1)
            .build()
        val response1 = client.newCall(request1).execute()
        assertThat(response1.code).isEqualTo(200)
    
        // Call 2: check for the absence of a deadline on the request body.
        val requestBody2: RequestBody =
          object : RequestBody() {
            override fun contentType(): MediaType = "text/plain".toMediaType()
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 146.5K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

          getResponse(
            Request(
              url = server.url("/b"),
              body = requestBody,
            ),
          )
        }
      }
    
      @Test
      fun fullyBufferedPostIsTooLong() {
        server.enqueue(
          MockResponse(body = "A"),
        )
        val requestBody: RequestBody =
          object : RequestBody() {
            override fun contentType(): MediaType? = null
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 133.3K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

        // Check that the cache did not store the response
        assertThat(cache.requestCount()).isEqualTo(2)
        assertThat(cache.hitCount()).isEqualTo(0)
      }
    
      private fun String.toOneShotRequestBody(): RequestBody =
        object : RequestBody() {
          val internalBody = Stream.of(this)
    
          override fun isOneShot(): Boolean = true
    
          override fun contentType(): MediaType? = "application/text-plain".toMediaTypeOrNull()
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Mar 20 09:13:37 GMT 2026
    - 121K bytes
    - Click Count (0)
  4. okhttp/src/androidMain/baseline-prof.txt

    HSPLokhttp3/Request$Builder;->method(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;
    HSPLokhttp3/Request$Builder;->url(Ljava/lang/String;)Lokhttp3/Request$Builder;
    HSPLokhttp3/Request$Builder;->url(Lokhttp3/HttpUrl;)Lokhttp3/Request$Builder;
    HSPLokhttp3/Request;-><init>(Lokhttp3/HttpUrl;Ljava/lang/String;Lokhttp3/Headers;Lokhttp3/RequestBody;Ljava/util/Map;)V
    HSPLokhttp3/Request;->cacheControl()Lokhttp3/CacheControl;
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Dec 30 23:28:56 GMT 2024
    - 127.9K bytes
    - Click Count (1)
Back to Top