StringCodecs
object StringCodecs : Defaults<StringCodec<Unit>, StringCodec<Boolean>, StringCodec<Byte>, StringCodec<Short>, StringCodec<Int>, StringCodec<Long>, StringCodec<Float>, StringCodec<Double>, StringCodec<BigInteger>, StringCodec<BigDecimal>, StringCodec<String>, StringCodec<UUID>> (source)
Default StringCodec factories for the scalar types used throughout Tapik's HTTP DSL.
This object centralizes the library's built-in string parsing rules so headers, parameters, and bodies all use the same conversions and error reporting.
Functions
Link copied to clipboard
Returns the default representation of a BigDecimal value identified by name.
Link copied to clipboard
Returns the default representation of a BigInteger value identified by name.
Link copied to clipboard
inline fun <V, T : ValueClass<V>> ofValueClass(fallbackName: String = "value", crossinline toString: (V) -> String = { it.toString() }): StringCodec<T>
Creates a StringCodec for a ValueClass wrapper by delegating to Tapik's default string codec and constructing the wrapper through its primary constructor.