1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-12 10:23:16 +03:00

Promote FileDescriptor.toRequestBody to a stable API (#8830)

This commit is contained in:
Jesse Wilson
2025-05-30 17:27:36 -04:00
committed by GitHub
parent 6f256ead5b
commit f141d4df96

View File

@@ -130,7 +130,6 @@ abstract class RequestBody {
/** Returns a new request body that transmits this. */
@JvmStatic
@JvmName("create")
@ExperimentalOkHttpApi
fun FileDescriptor.toRequestBody(contentType: MediaType? = null): RequestBody =
object : RequestBody() {
override fun contentType() = contentType