start 0.8.7 and make UnifiedRequester/UnifiedRouter fields are public

This commit is contained in:
InsanusMokrassar 2021-12-14 13:25:58 +06:00
parent ed1baaade7
commit 6f37125724
4 changed files with 14 additions and 6 deletions

View File

@ -1,5 +1,13 @@
# Changelog
## 0.8.7
* `Ktor`:
* `Client`:
* `UnifiedRequester` now have no private fields
* `Server`
* `UnifiedRouter` now have no private fields
## 0.8.6
* `Common`:

View File

@ -45,5 +45,5 @@ dokka_version=1.5.31
# Project data
group=dev.inmo
version=0.8.6
android_code_version=86
version=0.8.7
android_code_version=87

View File

@ -9,8 +9,8 @@ import kotlinx.serialization.*
typealias BodyPair<T> = Pair<SerializationStrategy<T>, T>
class UnifiedRequester(
private val client: HttpClient = HttpClient(),
private val serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat
val client: HttpClient = HttpClient(),
val serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat
) {
suspend fun <ResultType> uniget(
url: String,

View File

@ -15,8 +15,8 @@ import kotlinx.coroutines.flow.Flow
import kotlinx.serialization.*
class UnifiedRouter(
private val serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat,
private val serialFormatContentType: ContentType = standardKtorSerialFormatContentType
val serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat,
val serialFormatContentType: ContentType = standardKtorSerialFormatContentType
) {
fun <T> Route.includeWebsocketHandling(
suburl: String,