mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-01-05 07:19:56 +00:00
start 0.8.7 and make UnifiedRequester/UnifiedRouter fields are public
This commit is contained in:
parent
ed1baaade7
commit
6f37125724
CHANGELOG.mdgradle.properties
ktor
client/src/commonMain/kotlin/dev/inmo/micro_utils/ktor/client
server/src/jvmMain/kotlin/dev/inmo/micro_utils/ktor/server
@ -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`:
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user