Package-level declarations
Core Annotations
This section documents the core annotations used to define options and how the compiler interprets them. These annotations control how Ktorgen scans interfaces, generates client factories, and connects them to Ktor’s HTTP client.
More information, see Core Annotations.
Types
Each generated class, function, and files is annotated with this to identify them if they need to be excluded, for instance, by static analysis tools.
Indicates that an interface should be used for Ktor Client code generation.
Experimental API, the compiler can omit the property or annotation, or generated code has errors.
Indicates that a method within a @KtorGen-annotated interface should participate in code generation.
An annotation used to mark an expect factory function for multi-platform support in KSP running on each platform.