Moshi
To implement custom JSON configuration, create your own object singleton. Extra mappings can be added before done() is called.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T : Any> Body.Companion.auto(description: String? = null, contentNegotiation: ContentNegotiation = None, contentType: ContentType = defaultContentType): BiDiBodyLensSpec<T>
Link copied to clipboard
inline fun <T : Any> autoBody(description: String? = null, contentNegotiation: ContentNegotiation = None, contentType: ContentType = defaultContentType): BiDiBodyLensSpec<T>
Link copied to clipboard
open fun body(description: String?, contentNegotiation: ContentNegotiation): BiDiBodyLensSpec<MoshiNode>
Link copied to clipboard
Link copied to clipboard
fun custom(configureFn: AutoMappingConfiguration<Moshi.Builder>.() -> AutoMappingConfiguration<Moshi.Builder>): ConfigurableMoshi
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Convenience function to read an object as JSON from the message body.
Convenience function to write the object as JSON to the message body and set the content type.
open fun Body.Companion.json(description: String?, contentNegotiation: ContentNegotiation): BiDiBodyLensSpec<MoshiNode>
Link copied to clipboard
Link copied to clipboard