- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for createRequestBody (0.18 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/ExchangeCodec.kt
/** The socket that carries this exchange. */ val socket: Socket /** Returns an output stream where the request body can be streamed. */ @Throws(IOException::class) fun createRequestBody( request: Request, contentLength: Long, ): Sink /** This should update the HTTP engine's sentRequestMillis field. */ @Throws(IOException::class) fun writeRequestHeaders(request: Request)Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jul 29 21:11:09 GMT 2025 - 3.3K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2ExchangeCodec.kt
@Volatile private var canceled = false override val isResponseComplete: Boolean get() = stream?.isSourceComplete == true override val socket: Socket get() = stream!! override fun createRequestBody( request: Request, contentLength: Long, ): Sink = stream!!.sink override fun writeRequestHeaders(request: Request) { if (stream != null) return val hasRequestBody = request.body != nullCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jul 29 21:11:09 GMT 2025 - 7K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/Exchange.kt
trackFailure(e) throw e } } @Throws(IOException::class) fun createRequestBody( request: Request, duplex: Boolean, ): Sink { this.isDuplex = duplex val contentLength = request.body!!.contentLength() call.eventListener.requestBodyStart(call) val rawRequestBody = codec.createRequestBody(request, contentLength) return RequestBodySink( delegate = rawRequestBody,
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Nov 05 18:28:35 GMT 2025 - 10.5K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt
* return the value but instead throw an exception. */ private var trailers: Headers? = null override val isResponseComplete: Boolean get() = state == STATE_CLOSED override fun createRequestBody( request: Request, contentLength: Long, ): Sink = when { request.body?.isDuplex() == true -> { throw ProtocolException( "Duplex connections are not supported for HTTP/1",Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 17.6K bytes - Click Count (7) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/CallServerInterceptor.kt
exchange.flushRequest() val bufferedRequestBody = exchange.createRequestBody(request, true).buffer() requestBody.writeTo(bufferedRequestBody) } else { // Write the request body if the "Expect: 100-continue" expectation was met. val bufferedRequestBody = exchange.createRequestBody(request, false).buffer() requestBody.writeTo(bufferedRequestBody)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Oct 30 13:46:58 GMT 2025 - 7.6K bytes - Click Count (0)