You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using version 5.0.0-alpha14, and found that we have a public commonEmptyRequestBody in -UtilCommon.kt.
val commonEmptyHeaders:Headers=Headers.headersOf()
val commonEmptyRequestBody:RequestBody=EMPTY_BYTE_ARRAY.toRequestBody()
val commonEmptyResponse:ResponseBody=EMPTY_BYTE_ARRAY.toResponseBody()
I think we can have them internal and public them like this:
// with @JvmFieldHeaders.EmptyRequestBody.EmptyResponseBody.Empty
This type might fit Kotlin more. Also we can easier access them in Java like Headers.Companion.Empty
The text was updated successfully, but these errors were encountered:
I'm using version 5.0.0-alpha14, and found that we have a public
commonEmptyRequestBody
in-UtilCommon.kt
.I think we can have them
internal
and public them like this:This type might fit Kotlin more. Also we can easier access them in Java like
Headers.Companion.Empty
The text was updated successfully, but these errors were encountered: