Package dev. inmo. micro_utils. ktor. client
Types
Body Pair
Link copied to clipboard
Unified Requester
Link copied to clipboard
class UnifiedRequester(client: <ERROR CLASS>, serialFormat: StandardKtorSerialFormat)
Content copied to clipboard
class UnifiedRequester(client: <ERROR CLASS>, serialFormat: StandardKtorSerialFormat)
Content copied to clipboard
class UnifiedRequester(client: <ERROR CLASS>, serialFormat: StandardKtorSerialFormat)
Content copied to clipboard
Functions
create Standard Websocket Flow
Link copied to clipboard
inline fun <T> <ERROR CLASS>.createStandardWebsocketFlow(url: String, crossinline checkReconnection: (Throwable?) -> Boolean = { true }, crossinline conversation: suspend (StandardKtorSerialInputData) -> T): Flow<T>
Content copied to clipboard
inline fun <T> <ERROR CLASS>.createStandardWebsocketFlow(url: String, crossinline checkReconnection: (Throwable?) -> Boolean = { true }, deserializer: DeserializationStrategy<T>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): <ERROR CLASS>
Content copied to clipboard
inline fun <T> <ERROR CLASS>.createStandardWebsocketFlow(url: String, crossinline checkReconnection: (Throwable?) -> Boolean = { true }, crossinline conversation: suspend (StandardKtorSerialInputData) -> T): Flow<T>
Content copied to clipboard
inline fun <T> <ERROR CLASS>.createStandardWebsocketFlow(url: String, crossinline checkReconnection: (Throwable?) -> Boolean = { true }, deserializer: DeserializationStrategy<T>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): <ERROR CLASS>
Content copied to clipboard
inline fun <T> <ERROR CLASS>.createStandardWebsocketFlow(url: String, crossinline checkReconnection: (Throwable?) -> Boolean = { true }, crossinline conversation: suspend (StandardKtorSerialInputData) -> T): Flow<T>
Content copied to clipboard
inline fun <T> <ERROR CLASS>.createStandardWebsocketFlow(url: String, crossinline checkReconnection: (Throwable?) -> Boolean = { true }, deserializer: DeserializationStrategy<T>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): <ERROR CLASS>
Content copied to clipboard
encode Url Query Value
Link copied to clipboard
fun <T> SerializationStrategy<T>.encodeUrlQueryValue(value: T, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): String
Content copied to clipboard
fun <T> SerializationStrategy<T>.encodeUrlQueryValue(value: T, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): String
Content copied to clipboard
fun <T> SerializationStrategy<T>.encodeUrlQueryValue(value: T, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): String
Content copied to clipboard
input Provider
Link copied to clipboard
uniget
Link copied to clipboard
suspend fun <ResultType> <ERROR CLASS>.uniget(url: String, resultDeserializer: DeserializationStrategy<ResultType>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): <ERROR CLASS>
Content copied to clipboard
suspend fun <ResultType> <ERROR CLASS>.uniget(url: String, resultDeserializer: DeserializationStrategy<ResultType>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): <ERROR CLASS>
Content copied to clipboard
suspend fun <ResultType> <ERROR CLASS>.uniget(url: String, resultDeserializer: DeserializationStrategy<ResultType>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): <ERROR CLASS>
Content copied to clipboard
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
Content copied to clipboard
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
Content copied to clipboard
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
Content copied to clipboard
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
Content 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
Content copied to clipboard
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
Content copied to clipboard
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
Content copied to clipboard
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
Content 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
Content copied to clipboard
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
Content copied to clipboard
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
Content copied to clipboard
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
Content copied to clipboard
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>
Content copied to clipboard
suspend fun <BodyType, ResultType> <ERROR CLASS>.unipost(url: String, bodyInfo: BodyPair<BodyType>, resultDeserializer: DeserializationStrategy<ResultType>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): <ERROR CLASS>
Content copied to clipboard
suspend fun <BodyType, ResultType> <ERROR CLASS>.unipost(url: String, bodyInfo: BodyPair<BodyType>, resultDeserializer: DeserializationStrategy<ResultType>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat): <ERROR CLASS>
Content copied to clipboard
Properties
defaultRequester
Link copied to clipboard
defaultRequester
Link copied to clipboard
defaultRequester
Link copied to clipboard