setTrackedTextBody
fun HttpRequestBuilder.setTrackedTextBody(category: NetworkUsageCategory, body: String, contentType: ContentType = ContentType.Application.Json)(source)
Records a text request body and installs it as Ktor content with the supplied content type.
Receiver
Ktor request builder that will receive text content.
Author
Dmitriy Moroz
Parameters
category
Traffic bucket that should receive the encoded request byte count.
body
Text payload sent to the provider.
contentType
Ktor content type used for the installed TextContent.