Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for uploads (0.2 sec)

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

      }
    
      @Test
      fun flushAfterStreamTransmittedWithNoLengthHeaders() {
        testFlushAfterStreamTransmitted(TransferKind.END_OF_STREAM)
      }
    
      /**
       * We explicitly permit apps to close the upload stream even after it has been transmitted.  We
       * also permit flush so that buffered streams can do a no-op flush when they are closed.
       * http://b/3038470
       */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/ResponseBody.kt

       *
       * This method loads entire response body into memory. If the response body is very large this
       * may trigger an [OutOfMemoryError]. Prefer to stream the response body if this is a
       * possibility for your response.
       */
      @Throws(IOException::class)
      fun bytes() = commonBytes()
    
      /**
       * Returns the response as a [ByteString].
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CallTest.kt

      }
    
      @Test
      fun uploadBodySmallChunkedEncoding() {
        upload(true, 1048576, 256)
        val recordedRequest = server.takeRequest()
        assertThat(recordedRequest.bodySize).isEqualTo(1048576)
        assertThat(recordedRequest.chunkSizes).isNotEmpty()
      }
    
      @Test
      fun uploadBodyLargeChunkedEncoding() {
        upload(true, 1048576, 65536)
        val recordedRequest = server.takeRequest()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/Response.kt

       * will be truncated to [byteCount] bytes.
       *
       * It is an error to call this method after the body has been consumed.
       *
       * **Warning:** this method loads the requested bytes into memory. Most applications should set
       * a modest limit on `byteCount`, such as 1 MiB.
       */
      @Throws(IOException::class)
      fun peekBody(byteCount: Long): ResponseBody {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  5. docs/changelogs/changelog_2x.md

    ## Version 2.1.0
    
    _2014-11-11_
    
     *  New: Typesafe APIs for interacting with cipher suites and TLS versions.
     *  Fix: Don't crash when mixing authorization challenges with upload retries.
    
    
    ## Version 2.1.0-RC1
    
    _2014-11-04_
    
     *  **OkHttp now caches private responses**. We've changed from a shared cache
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
  6. samples/guide/src/main/java/okhttp3/recipes/kt/PostMultipart.kt

    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.RequestBody.Companion.asRequestBody
    
    class PostMultipart {
      private val client = OkHttpClient()
    
      fun run() {
        // Use the imgur image upload API as documented at https://api.imgur.com/endpoints/image
        val requestBody =
          MultipartBody.Builder()
            .setType(MultipartBody.FORM)
            .addFormDataPart("title", "Square Logo")
            .addFormDataPart(
    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)
  7. docs/recipes.md

            }
          }
        ```
    
    ### Posting a multipart request ([.kt][PostMultipartKotlin], [.java][PostMultipartJava])
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Feb 18 08:52:22 GMT 2022
    - 40.2K bytes
    - Viewed (1)
  8. okhttp/src/test/resources/okhttp3/internal/publicsuffix/public_suffix_list.dat

    ly
    com.ly
    net.ly
    gov.ly
    plc.ly
    edu.ly
    sch.ly
    med.ly
    org.ly
    id.ly
    
    // ma : https://en.wikipedia.org/wiki/.ma
    // http://www.anrt.ma/fr/admin/download/upload/file_fr782.pdf
    ma
    co.ma
    net.ma
    gov.ma
    org.ma
    ac.ma
    press.ma
    
    // mc : http://www.nic.mc/
    mc
    tm.mc
    asso.mc
    
    // md : https://en.wikipedia.org/wiki/.md
    md
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 240.3K bytes
    - Viewed (3)
Back to top