KtorGenHttpClientExtFactory

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class KtorGenHttpClientExtFactory(val name: String = KTORGEN_DEFAULT_NAME)(source)

Whether to generate an extension function on HttpClient to instantiate the API.

Example: fun HttpClient.userRoute(): UserRoute

Parameters

name

The name of the function to generate. Defaults to the interface name.

Properties

Link copied to clipboard