ClientPluginBuilder
An utility class used to build a ClientPlugin instance.
Properties
Link copied to clipboard
A reference to the HttpClient where the plugin is installed.
Link copied to clipboard
A configuration of the current plugin.
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.