Package dev.inmo.micro_utils.ktor.client

Types

BodyPair
Link copied to clipboard
typealias BodyPair<T> = Pair<SerializationStrategy<T>, T>
typealias BodyPair<T> = Pair<SerializationStrategy<T>, T>
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
inputProvider
Link copied to clipboard
expect suspend fun MPPFile.inputProvider(): <ERROR CLASS>
expect suspend fun MPPFile.inputProvider(): <ERROR CLASS>
expect suspend fun MPPFile.inputProvider(): <ERROR CLASS>
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>
unimultipart
Link copied to clipboard
suspend fun <ResultType> <ERROR CLASS>.unimultipart(url: String, mppFile: MPPFile, resultDeserializer: DeserializationStrategy<ResultType>, mimetype: String = "*/*", additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {}, dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {}, requestBuilder: <ERROR CLASS>.() -> Unit = {}, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): ResultType
suspend fun <BodyType, ResultType> <ERROR CLASS>.unimultipart(url: String, mppFile: MPPFile, otherData: BodyPair<BodyType>, resultDeserializer: DeserializationStrategy<ResultType>, mimetype: String = "*/*", additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {}, dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {}, requestBuilder: <ERROR CLASS>.() -> Unit = {}, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): ResultType
suspend fun <ResultType> <ERROR CLASS>.unimultipart(url: String, filename: String, inputProvider: <ERROR CLASS>, resultDeserializer: DeserializationStrategy<ResultType>, mimetype: String = "*/*", additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {}, dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {}, requestBuilder: <ERROR CLASS>.() -> Unit = {}, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): ResultType
suspend fun <BodyType, ResultType> <ERROR CLASS>.unimultipart(url: String, filename: String, otherData: BodyPair<BodyType>, inputProvider: <ERROR CLASS>, resultDeserializer: DeserializationStrategy<ResultType>, mimetype: String = "*/*", additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {}, dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {}, requestBuilder: <ERROR CLASS>.() -> Unit = {}, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): ResultType
suspend fun <ResultType> <ERROR CLASS>.unimultipart(url: String, mppFile: MPPFile, resultDeserializer: DeserializationStrategy<ResultType>, mimetype: String = "*/*", additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {}, dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {}, requestBuilder: <ERROR CLASS>.() -> Unit = {}, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): ResultType
suspend fun <BodyType, ResultType> <ERROR CLASS>.unimultipart(url: String, mppFile: MPPFile, otherData: BodyPair<BodyType>, resultDeserializer: DeserializationStrategy<ResultType>, mimetype: String = "*/*", additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {}, dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {}, requestBuilder: <ERROR CLASS>.() -> Unit = {}, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): ResultType
suspend fun <ResultType> <ERROR CLASS>.unimultipart(url: String, filename: String, inputProvider: <ERROR CLASS>, resultDeserializer: DeserializationStrategy<ResultType>, mimetype: String = "*/*", additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {}, dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {}, requestBuilder: <ERROR CLASS>.() -> Unit = {}, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): ResultType
suspend fun <BodyType, ResultType> <ERROR CLASS>.unimultipart(url: String, filename: String, otherData: BodyPair<BodyType>, inputProvider: <ERROR CLASS>, resultDeserializer: DeserializationStrategy<ResultType>, mimetype: String = "*/*", additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {}, dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {}, requestBuilder: <ERROR CLASS>.() -> Unit = {}, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): ResultType
suspend fun <ResultType> <ERROR CLASS>.unimultipart(url: String, mppFile: MPPFile, resultDeserializer: DeserializationStrategy<ResultType>, mimetype: String = "*/*", additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {}, dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {}, requestBuilder: <ERROR CLASS>.() -> Unit = {}, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): ResultType
suspend fun <BodyType, ResultType> <ERROR CLASS>.unimultipart(url: String, mppFile: MPPFile, otherData: BodyPair<BodyType>, resultDeserializer: DeserializationStrategy<ResultType>, mimetype: String = "*/*", additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {}, dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {}, requestBuilder: <ERROR CLASS>.() -> Unit = {}, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): ResultType
suspend fun <ResultType> <ERROR CLASS>.unimultipart(url: String, filename: String, inputProvider: <ERROR CLASS>, resultDeserializer: DeserializationStrategy<ResultType>, mimetype: String = "*/*", additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {}, dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {}, requestBuilder: <ERROR CLASS>.() -> Unit = {}, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): ResultType
suspend fun <BodyType, ResultType> <ERROR CLASS>.unimultipart(url: String, filename: String, otherData: BodyPair<BodyType>, inputProvider: <ERROR CLASS>, resultDeserializer: DeserializationStrategy<ResultType>, mimetype: String = "*/*", additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {}, dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {}, requestBuilder: <ERROR CLASS>.() -> Unit = {}, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): ResultType
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

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