Package dev.inmo.micro_utils.ktor.client

Types

BodyPair
Link copied to clipboard
common
typealias BodyPair<T> = Pair<SerializationStrategy<T>, T>
UnifiedRequester
Link copied to clipboard
class UnifiedRequester(client: <ERROR CLASS>, serialFormat: StandardKtorSerialFormat)
class UnifiedRequester(client: <ERROR CLASS>, serialFormat: StandardKtorSerialFormat)
class UnifiedRequester(client: <ERROR CLASS>, serialFormat: StandardKtorSerialFormat)

Functions

createStandardWebsocketFlow
Link copied to clipboard
inline fun <T> <ERROR CLASS>.createStandardWebsocketFlow(url: String, crossinline checkReconnection: (Throwable?) -> Boolean = { true }, crossinline conversation: suspend (StandardKtorSerialInputData) -> T): Flow<T>
inline fun <T> <ERROR CLASS>.createStandardWebsocketFlow(url: String, crossinline checkReconnection: (Throwable?) -> Boolean = { true }, deserializer: DeserializationStrategy<T>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): <ERROR CLASS>
inline fun <T> <ERROR CLASS>.createStandardWebsocketFlow(url: String, crossinline checkReconnection: (Throwable?) -> Boolean = { true }, crossinline conversation: suspend (StandardKtorSerialInputData) -> T): Flow<T>
inline fun <T> <ERROR CLASS>.createStandardWebsocketFlow(url: String, crossinline checkReconnection: (Throwable?) -> Boolean = { true }, deserializer: DeserializationStrategy<T>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): <ERROR CLASS>
inline fun <T> <ERROR CLASS>.createStandardWebsocketFlow(url: String, crossinline checkReconnection: (Throwable?) -> Boolean = { true }, crossinline conversation: suspend (StandardKtorSerialInputData) -> T): Flow<T>
inline fun <T> <ERROR CLASS>.createStandardWebsocketFlow(url: String, crossinline checkReconnection: (Throwable?) -> Boolean = { true }, deserializer: DeserializationStrategy<T>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): <ERROR CLASS>
encodeUrlQueryValue
Link copied to clipboard
fun <T> SerializationStrategy<T>.encodeUrlQueryValue(value: T, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): String
fun <T> SerializationStrategy<T>.encodeUrlQueryValue(value: T, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): String
fun <T> SerializationStrategy<T>.encodeUrlQueryValue(value: T, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): String
uniget
Link copied to clipboard
suspend fun <ResultType> <ERROR CLASS>.uniget(url: String, resultDeserializer: DeserializationStrategy<ResultType>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): <ERROR CLASS>
suspend fun <ResultType> <ERROR CLASS>.uniget(url: String, resultDeserializer: DeserializationStrategy<ResultType>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): <ERROR CLASS>
suspend fun <ResultType> <ERROR CLASS>.uniget(url: String, resultDeserializer: DeserializationStrategy<ResultType>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): <ERROR CLASS>
unipost
Link copied to clipboard
suspend fun <BodyType, ResultType> <ERROR CLASS>.unipost(url: String, bodyInfo: BodyPair<BodyType>, resultDeserializer: DeserializationStrategy<ResultType>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): <ERROR CLASS>
suspend fun <BodyType, ResultType> <ERROR CLASS>.unipost(url: String, bodyInfo: BodyPair<BodyType>, resultDeserializer: DeserializationStrategy<ResultType>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): <ERROR CLASS>
suspend fun <BodyType, ResultType> <ERROR CLASS>.unipost(url: String, bodyInfo: BodyPair<BodyType>, resultDeserializer: DeserializationStrategy<ResultType>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): <ERROR CLASS>

Properties

defaultRequester
Link copied to clipboard
val defaultRequester: UnifiedRequester
defaultRequester
Link copied to clipboard
common
val defaultRequester: UnifiedRequester
defaultRequester
Link copied to clipboard
val defaultRequester: UnifiedRequester