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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user