Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for RequestBody (0.1 sec)

  1. okhttp/src/test/java/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
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CallTest.kt

        enableProtocol(Protocol.HTTP_2)
        server.enqueue(MockResponse(body = "Response 1"))
        server.enqueue(MockResponse(body = "Response 2"))
        val requestBody: RequestBody =
          object : RequestBody() {
            override fun contentType(): MediaType? {
              return null
            }
    
            override fun writeTo(sink: BufferedSink) {
              sink.writeUtf8("abc")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  3. okhttp-android/src/main/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;
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Mar 21 11:22:00 UTC 2022
    - 127.9K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CacheTest.kt

    import mockwebserver3.junit5.internal.MockWebServerInstance
    import okhttp3.Cache.Companion.key
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.RequestBody.Companion.toRequestBody
    import okhttp3.internal.addHeaderLenient
    import okhttp3.internal.cacheGet
    import okhttp3.internal.platform.Platform.Companion.get
    import okhttp3.java.net.cookiejar.JavaNetCookieJar
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
Back to top