ClientPluginBuilder
An utility class used to build a ClientPlugin instance.
Functions
Link copied to clipboard
Link copied to clipboard
Specifies the block handler for every HTTP request.
Link copied to clipboard
Specifies the block handler for every HTTP response.
Link copied to clipboard
fun transformRequestBody(block: suspend TransformRequestBodyContext.(request: HttpRequestBuilder, content: Any, bodyType: TypeInfo?) -> OutgoingContent?)
Specifies the block transformer for a request body.
Link copied to clipboard
fun transformResponseBody(block: suspend TransformResponseBodyContext.(response: HttpResponse, content: ByteReadChannel, requestedType: TypeInfo) -> Any?)
Specifies the block transformer for a response body.