Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for RequestBodySink (0.07 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/Exchange.kt

        this.isDuplex = duplex
        val contentLength = request.body!!.contentLength()
        call.eventListener.requestBodyStart(call)
        val rawRequestBody = codec.createRequestBody(request, contentLength)
        return RequestBodySink(
          delegate = rawRequestBody,
          contentLength = contentLength,
          isSocket = false,
        )
      }
    
      @Throws(IOException::class)
      fun flushRequest() {
        try {
          codec.flushRequest()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

            writeHttpResponse(socket, response)
          }
    
          val requestBodySink =
            requestBody
              .withThrottlingAndSocketEffect(
                policy = peek,
                socketEffect = peek.onRequestBody,
                expectedByteCount = contentLength,
                socket = socket,
              ).buffer()
          requestBodySink.use {
            when {
              peek.doNotReadRequestBody -> {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Aug 02 20:36:00 UTC 2025
    - 40.3K bytes
    - Viewed (0)
Back to top