Package dev. inmo. micro_utils. ktor. client
Types
Unified Requester
Link copied to clipboard
class UnifiedRequester(val client: <ERROR CLASS> = HttpClient(), val serialFormat: <ERROR CLASS> = standardKtorSerialFormat)
Content copied to clipboard
class UnifiedRequester(val client: <ERROR CLASS> = HttpClient(), val serialFormat: <ERROR CLASS> = standardKtorSerialFormat)
Content copied to clipboard
class UnifiedRequester(val client: <ERROR CLASS> = HttpClient(), val serialFormat: <ERROR CLASS> = standardKtorSerialFormat)
Content copied to clipboard
Functions
create Standard Websocket Flow
Link copied to clipboard
inline fun <T : Any> <ERROR CLASS>.createStandardWebsocketFlow( url: String, noinline checkReconnection: suspend (Throwable?) -> Boolean = { true }, noinline requestBuilder: <ERROR CLASS>.() -> Unit = {}): Flow<T>
Content copied to clipboard
inline fun <T> <ERROR CLASS>.createStandardWebsocketFlow( url: String, crossinline checkReconnection: suspend (Throwable?) -> Boolean = { true }, noinline requestBuilder: <ERROR CLASS>.() -> Unit = {}, crossinline conversation: suspend (StandardKtorSerialInputData) -> T): Flow<T>
Content copied to clipboard
inline fun <T> <ERROR CLASS>.createStandardWebsocketFlow( url: String, deserializer: <ERROR CLASS><T>, crossinline checkReconnection: suspend (Throwable?) -> Boolean = { true }, serialFormat: <ERROR CLASS> = standardKtorSerialFormat, noinline requestBuilder: <ERROR CLASS>.() -> Unit = {}): <ERROR CLASS>
Content copied to clipboard
inline fun <T : Any> <ERROR CLASS>.createStandardWebsocketFlow( url: String, noinline checkReconnection: suspend (Throwable?) -> Boolean = { true }, noinline requestBuilder: <ERROR CLASS>.() -> Unit = {}): Flow<T>
Content copied to clipboard
inline fun <T> <ERROR CLASS>.createStandardWebsocketFlow( url: String, crossinline checkReconnection: suspend (Throwable?) -> Boolean = { true }, noinline requestBuilder: <ERROR CLASS>.() -> Unit = {}, crossinline conversation: suspend (StandardKtorSerialInputData) -> T): Flow<T>
Content copied to clipboard
inline fun <T> <ERROR CLASS>.createStandardWebsocketFlow( url: String, deserializer: <ERROR CLASS><T>, crossinline checkReconnection: suspend (Throwable?) -> Boolean = { true }, serialFormat: <ERROR CLASS> = standardKtorSerialFormat, noinline requestBuilder: <ERROR CLASS>.() -> Unit = {}): <ERROR CLASS>
Content copied to clipboard
inline fun <T : Any> <ERROR CLASS>.createStandardWebsocketFlow( url: String, noinline checkReconnection: suspend (Throwable?) -> Boolean = { true }, noinline requestBuilder: <ERROR CLASS>.() -> Unit = {}): Flow<T>
Content copied to clipboard
inline fun <T> <ERROR CLASS>.createStandardWebsocketFlow( url: String, crossinline checkReconnection: suspend (Throwable?) -> Boolean = { true }, noinline requestBuilder: <ERROR CLASS>.() -> Unit = {}, crossinline conversation: suspend (StandardKtorSerialInputData) -> T): Flow<T>
Content copied to clipboard
inline fun <T> <ERROR CLASS>.createStandardWebsocketFlow( url: String, deserializer: <ERROR CLASS><T>, crossinline checkReconnection: suspend (Throwable?) -> Boolean = { true }, serialFormat: <ERROR CLASS> = standardKtorSerialFormat, noinline requestBuilder: <ERROR CLASS>.() -> Unit = {}): <ERROR CLASS>
Content copied to clipboard
encode Url Query Value
Link copied to clipboard
fun <T> <ERROR CLASS><T>.encodeUrlQueryValue(value: T, serialFormat: <ERROR CLASS> = standardKtorSerialFormat): <ERROR CLASS>
Content copied to clipboard
fun <T> <ERROR CLASS><T>.encodeUrlQueryValue(value: T, serialFormat: <ERROR CLASS> = standardKtorSerialFormat): <ERROR CLASS>
Content copied to clipboard
fun <T> <ERROR CLASS><T>.encodeUrlQueryValue(value: T, serialFormat: <ERROR CLASS> = standardKtorSerialFormat): <ERROR CLASS>
Content copied to clipboard
input Provider
Link copied to clipboard
open Base Web Socket Flow
Link copied to clipboard
open Secure Web Socket Flow
Link copied to clipboard
open Web Socket Flow
Link copied to clipboard
temp Upload
Link copied to clipboard
expect suspend fun <ERROR CLASS>.tempUpload( fullTempUploadDraftPath: String, file: MPPFile, onUpload: (uploaded: Long, count: Long) -> Unit = { _, _ -> }): TemporalFileId
Content copied to clipboard
suspend fun UnifiedRequester.tempUpload( fullTempUploadDraftPath: String, file: MPPFile, onUpload: (uploaded: Long, count: Long) -> Unit = { _, _ -> }): TemporalFileId
Content copied to clipboard
expect suspend fun <ERROR CLASS>.tempUpload( fullTempUploadDraftPath: String, file: MPPFile, onUpload: (uploaded: Long, count: Long) -> Unit = { _, _ -> }): TemporalFileId
Content copied to clipboard
suspend fun UnifiedRequester.tempUpload( fullTempUploadDraftPath: String, file: MPPFile, onUpload: (uploaded: Long, count: Long) -> Unit = { _, _ -> }): TemporalFileId
Content copied to clipboard
expect suspend fun <ERROR CLASS>.tempUpload( fullTempUploadDraftPath: String, file: MPPFile, onUpload: (uploaded: Long, count: Long) -> Unit = { _, _ -> }): TemporalFileId
Content copied to clipboard
suspend fun UnifiedRequester.tempUpload( fullTempUploadDraftPath: String, file: MPPFile, onUpload: (uploaded: Long, count: Long) -> Unit = { _, _ -> }): TemporalFileId
Content copied to clipboard
throw On Unsuccess
Link copied to clipboard
inline fun <ERROR CLASS>.throwOnUnsuccess(unsuccessMessage: () -> String)
Content copied to clipboard
inline fun <ERROR CLASS>.throwOnUnsuccess(unsuccessMessage: () -> String)
Content copied to clipboard
inline fun <ERROR CLASS>.throwOnUnsuccess(unsuccessMessage: () -> String)
Content copied to clipboard
uniget
Link copied to clipboard
suspend fun <ResultType> <ERROR CLASS>.uniget( url: String, resultDeserializer: <ERROR CLASS><ResultType>, serialFormat: <ERROR CLASS> = standardKtorSerialFormat): <ERROR CLASS>
Content copied to clipboard
suspend fun <ResultType> <ERROR CLASS>.uniget( url: String, resultDeserializer: <ERROR CLASS><ResultType>, serialFormat: <ERROR CLASS> = standardKtorSerialFormat): <ERROR CLASS>
Content copied to clipboard
suspend fun <ResultType> <ERROR CLASS>.uniget( url: String, resultDeserializer: <ERROR CLASS><ResultType>, serialFormat: <ERROR CLASS> = standardKtorSerialFormat): <ERROR CLASS>
Content copied to clipboard
unimultipart
Link copied to clipboard
suspend fun <ResultType> <ERROR CLASS>.unimultipart( url: String, mppFile: MPPFile, resultDeserializer: <ERROR CLASS><ResultType>, mimetype: String = "*/*", additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {}, dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {}, requestBuilder: <ERROR CLASS>.() -> Unit = {}, serialFormat: <ERROR CLASS> = standardKtorSerialFormat): ResultType
Content copied to clipboard
suspend fun <BodyType, ResultType> <ERROR CLASS>.unimultipart( url: String, mppFile: MPPFile, otherData: Pair<<ERROR CLASS><BodyType>, BodyType>, resultDeserializer: <ERROR CLASS><ResultType>, mimetype: String = "*/*", additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {}, dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {}, requestBuilder: <ERROR CLASS>.() -> Unit = {}, serialFormat: <ERROR CLASS> = standardKtorSerialFormat): ResultType
Content copied to clipboard
suspend fun <ResultType> <ERROR CLASS>.unimultipart( url: String, filename: String, inputProvider: <ERROR CLASS>, resultDeserializer: <ERROR CLASS><ResultType>, mimetype: String = "*/*", additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {}, dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {}, requestBuilder: <ERROR CLASS>.() -> Unit = {}, serialFormat: <ERROR CLASS> = standardKtorSerialFormat): ResultType
Content copied to clipboard
suspend fun <BodyType, ResultType> <ERROR CLASS>.unimultipart( url: String, filename: String, otherData: Pair<<ERROR CLASS><BodyType>, BodyType>, inputProvider: <ERROR CLASS>, resultDeserializer: <ERROR CLASS><ResultType>, mimetype: String = "*/*", additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {}, dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {}, requestBuilder: <ERROR CLASS>.() -> Unit = {}, serialFormat: <ERROR CLASS> = standardKtorSerialFormat): ResultType
Content copied to clipboard
suspend fun <ResultType> <ERROR CLASS>.unimultipart( url: String, mppFile: MPPFile, resultDeserializer: <ERROR CLASS><ResultType>, mimetype: String = "*/*", additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {}, dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {}, requestBuilder: <ERROR CLASS>.() -> Unit = {}, serialFormat: <ERROR CLASS> = standardKtorSerialFormat): ResultType
Content copied to clipboard
suspend fun <BodyType, ResultType> <ERROR CLASS>.unimultipart( url: String, mppFile: MPPFile, otherData: Pair<<ERROR CLASS><BodyType>, BodyType>, resultDeserializer: <ERROR CLASS><ResultType>, mimetype: String = "*/*", additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {}, dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {}, requestBuilder: <ERROR CLASS>.() -> Unit = {}, serialFormat: <ERROR CLASS> = standardKtorSerialFormat): ResultType
Content copied to clipboard
suspend fun <ResultType> <ERROR CLASS>.unimultipart( url: String, filename: String, inputProvider: <ERROR CLASS>, resultDeserializer: <ERROR CLASS><ResultType>, mimetype: String = "*/*", additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {}, dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {}, requestBuilder: <ERROR CLASS>.() -> Unit = {}, serialFormat: <ERROR CLASS> = standardKtorSerialFormat): ResultType
Content copied to clipboard
suspend fun <BodyType, ResultType> <ERROR CLASS>.unimultipart( url: String, filename: String, otherData: Pair<<ERROR CLASS><BodyType>, BodyType>, inputProvider: <ERROR CLASS>, resultDeserializer: <ERROR CLASS><ResultType>, mimetype: String = "*/*", additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {}, dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {}, requestBuilder: <ERROR CLASS>.() -> Unit = {}, serialFormat: <ERROR CLASS> = standardKtorSerialFormat): ResultType
Content copied to clipboard
suspend fun <ResultType> <ERROR CLASS>.unimultipart( url: String, mppFile: MPPFile, resultDeserializer: <ERROR CLASS><ResultType>, mimetype: String = "*/*", additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {}, dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {}, requestBuilder: <ERROR CLASS>.() -> Unit = {}, serialFormat: <ERROR CLASS> = standardKtorSerialFormat): ResultType
Content copied to clipboard
suspend fun <BodyType, ResultType> <ERROR CLASS>.unimultipart( url: String, mppFile: MPPFile, otherData: Pair<<ERROR CLASS><BodyType>, BodyType>, resultDeserializer: <ERROR CLASS><ResultType>, mimetype: String = "*/*", additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {}, dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {}, requestBuilder: <ERROR CLASS>.() -> Unit = {}, serialFormat: <ERROR CLASS> = standardKtorSerialFormat): ResultType
Content copied to clipboard
suspend fun <ResultType> <ERROR CLASS>.unimultipart( url: String, filename: String, inputProvider: <ERROR CLASS>, resultDeserializer: <ERROR CLASS><ResultType>, mimetype: String = "*/*", additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {}, dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {}, requestBuilder: <ERROR CLASS>.() -> Unit = {}, serialFormat: <ERROR CLASS> = standardKtorSerialFormat): ResultType
Content copied to clipboard
suspend fun <BodyType, ResultType> <ERROR CLASS>.unimultipart( url: String, filename: String, otherData: Pair<<ERROR CLASS><BodyType>, BodyType>, inputProvider: <ERROR CLASS>, resultDeserializer: <ERROR CLASS><ResultType>, mimetype: String = "*/*", additionalParametersBuilder: <ERROR CLASS>.() -> Unit = {}, dataHeadersBuilder: <ERROR CLASS>.() -> Unit = {}, requestBuilder: <ERROR CLASS>.() -> Unit = {}, serialFormat: <ERROR CLASS> = standardKtorSerialFormat): ResultType
Content copied to clipboard
unipost
Link copied to clipboard
suspend fun <BodyType, ResultType> <ERROR CLASS>.unipost( url: String, bodyInfo: Pair<<ERROR CLASS><BodyType>, BodyType>, resultDeserializer: <ERROR CLASS><ResultType>, serialFormat: <ERROR CLASS> = standardKtorSerialFormat): <ERROR CLASS>
Content copied to clipboard
suspend fun <BodyType, ResultType> <ERROR CLASS>.unipost( url: String, bodyInfo: Pair<<ERROR CLASS><BodyType>, BodyType>, resultDeserializer: <ERROR CLASS><ResultType>, serialFormat: <ERROR CLASS> = standardKtorSerialFormat): <ERROR CLASS>
Content copied to clipboard
suspend fun <BodyType, ResultType> <ERROR CLASS>.unipost( url: String, bodyInfo: Pair<<ERROR CLASS><BodyType>, BodyType>, resultDeserializer: <ERROR CLASS><ResultType>, serialFormat: <ERROR CLASS> = standardKtorSerialFormat): <ERROR CLASS>
Content copied to clipboard