Package dev.inmo.micro_utils.ktor.common

Types

CorrectCloseException
Link copied to clipboard
object CorrectCloseException : Exception
object CorrectCloseException : Exception
object CorrectCloseException : Exception
FromToDateTime
Link copied to clipboard
common
typealias FromToDateTime = Pair<<ERROR CLASS>?, <ERROR CLASS>?>
QueryParam
Link copied to clipboard
common
typealias QueryParam = Pair<String, String?>
QueryParams
Link copied to clipboard
common
typealias QueryParams = Map<String, String?>
StandardKtorSerialFormat
Link copied to clipboard
common
typealias StandardKtorSerialFormat = BinaryFormat
StandardKtorSerialInputData
Link copied to clipboard
common
typealias StandardKtorSerialInputData = ByteArray

Functions

buildStandardUrl
Link copied to clipboard
fun buildStandardUrl(basePart: String, subpart: String, vararg parameters: QueryParam): String
fun buildStandardUrl(basePart: String, subpart: String, parameters: List<QueryParam>): String
fun buildStandardUrl(basePart: String, subpart: String, parameters: QueryParams = emptyMap()): String
fun buildStandardUrl(basePart: String, subpart: String, vararg parameters: QueryParam): String
fun buildStandardUrl(basePart: String, subpart: String, parameters: List<QueryParam>): String
fun buildStandardUrl(basePart: String, subpart: String, parameters: QueryParams = emptyMap()): String
fun buildStandardUrl(basePart: String, subpart: String, vararg parameters: QueryParam): String
fun buildStandardUrl(basePart: String, subpart: String, parameters: List<QueryParam>): String
fun buildStandardUrl(basePart: String, subpart: String, parameters: QueryParams = emptyMap()): String
decodeDefault
Link copied to clipboard
inline fun <T> StandardKtorSerialFormat.decodeDefault(deserializationStrategy: DeserializationStrategy<T>, input: StandardKtorSerialInputData): T
inline fun <T> StandardKtorSerialFormat.decodeDefault(deserializationStrategy: DeserializationStrategy<T>, input: StandardKtorSerialInputData): T
inline fun <T> StandardKtorSerialFormat.decodeDefault(deserializationStrategy: DeserializationStrategy<T>, input: StandardKtorSerialInputData): T
decodeHex
Link copied to clipboard
inline fun <T> StandardKtorSerialFormat.decodeHex(deserializationStrategy: DeserializationStrategy<T>, input: String): T
inline fun <T> StandardKtorSerialFormat.decodeHex(deserializationStrategy: DeserializationStrategy<T>, input: String): T
inline fun <T> StandardKtorSerialFormat.decodeHex(deserializationStrategy: DeserializationStrategy<T>, input: String): T
encodeDefault
Link copied to clipboard
inline fun <T> StandardKtorSerialFormat.encodeDefault(serializationStrategy: SerializationStrategy<T>, data: T): StandardKtorSerialInputData
inline fun <T> StandardKtorSerialFormat.encodeDefault(serializationStrategy: SerializationStrategy<T>, data: T): StandardKtorSerialInputData
inline fun <T> StandardKtorSerialFormat.encodeDefault(serializationStrategy: SerializationStrategy<T>, data: T): StandardKtorSerialInputData
encodeHex
Link copied to clipboard
inline fun <T> StandardKtorSerialFormat.encodeHex(serializationStrategy: SerializationStrategy<T>, data: T): String
inline fun <T> StandardKtorSerialFormat.encodeHex(serializationStrategy: SerializationStrategy<T>, data: T): String
inline fun <T> StandardKtorSerialFormat.encodeHex(serializationStrategy: SerializationStrategy<T>, data: T): String
includeQueryParams
Link copied to clipboard
fun String.includeQueryParams(queryParams: List<QueryParam>): String
fun String.includeQueryParams(queryParams: QueryParams): String
fun String.includeQueryParams(queryParams: List<QueryParam>): String
fun String.includeQueryParams(queryParams: QueryParams): String
fun String.includeQueryParams(queryParams: List<QueryParam>): String
fun String.includeQueryParams(queryParams: QueryParams): String

Create query part which includes key=value pairs separated with & and attach to receiver

Properties

asCorrectWebSocketUrl
Link copied to clipboard
val String.asCorrectWebSocketUrl: String
asCorrectWebSocketUrl
Link copied to clipboard
common
val String.asCorrectWebSocketUrl: String
asCorrectWebSocketUrl
Link copied to clipboard
val String.asCorrectWebSocketUrl: String
asFromToUrlPart
Link copied to clipboard
val FromToDateTime.asFromToUrlPart: QueryParams
asFromToUrlPart
Link copied to clipboard
common
val FromToDateTime.asFromToUrlPart: QueryParams
asFromToUrlPart
Link copied to clipboard
val FromToDateTime.asFromToUrlPart: QueryParams
asUrlQuery
Link copied to clipboard
val QueryParams.asUrlQuery: String

Create query part which includes key=value pairs separated with &

asUrlQuery
Link copied to clipboard
common
val QueryParams.asUrlQuery: String

Create query part which includes key=value pairs separated with &

asUrlQuery
Link copied to clipboard
val QueryParams.asUrlQuery: String

Create query part which includes key=value pairs separated with &

asUrlQuery
Link copied to clipboard
val List<QueryParam>.asUrlQuery: String

Create query part which includes key=value pairs separated with &

asUrlQuery
Link copied to clipboard
common
val List<QueryParam>.asUrlQuery: String

Create query part which includes key=value pairs separated with &

asUrlQuery
Link copied to clipboard
val List<QueryParam>.asUrlQuery: String

Create query part which includes key=value pairs separated with &

cbor
Link copied to clipboard
val cbor: <ERROR CLASS>
cbor
Link copied to clipboard
common
val cbor: <ERROR CLASS>
cbor
Link copied to clipboard
val cbor: <ERROR CLASS>
extractFromToDateTime
Link copied to clipboard
val QueryParams.extractFromToDateTime: FromToDateTime
extractFromToDateTime
Link copied to clipboard
common
val QueryParams.extractFromToDateTime: FromToDateTime
extractFromToDateTime
Link copied to clipboard
val QueryParams.extractFromToDateTime: FromToDateTime
parseUrlQuery
Link copied to clipboard
val String.parseUrlQuery: QueryParams
parseUrlQuery
Link copied to clipboard
common
val String.parseUrlQuery: QueryParams
parseUrlQuery
Link copied to clipboard
val String.parseUrlQuery: QueryParams
standardKtorSerialFormat
Link copied to clipboard
val standardKtorSerialFormat: StandardKtorSerialFormat
standardKtorSerialFormat
Link copied to clipboard
common
val standardKtorSerialFormat: StandardKtorSerialFormat
standardKtorSerialFormat
Link copied to clipboard
val standardKtorSerialFormat: StandardKtorSerialFormat