Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for writeOrCountBytes (0.39 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/FormBody.kt

      override fun contentType(): MediaType = CONTENT_TYPE
    
      override fun contentLength(): Long = writeOrCountBytes(null, true)
    
      @Throws(IOException::class)
      override fun writeTo(sink: BufferedSink) {
        writeOrCountBytes(sink, false)
      }
    
      /**
       * Either writes this request to [sink] or measures its content length. We have one method
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartBody.kt

      override fun contentLength(): Long {
        var result = contentLength
        if (result == -1L) {
          result = writeOrCountBytes(null, true)
          contentLength = result
        }
        return result
      }
    
      @Throws(IOException::class)
      override fun writeTo(sink: BufferedSink) {
        writeOrCountBytes(sink, false)
      }
    
      /**
       * Either writes this request to [sink] or measures its content length. We have one method do
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.9K bytes
    - Viewed (0)
Back to top