Package-level declarations
Types
Defines how authentication headers are injected into every outgoing request.
Configuration for the in-memory HTTP response cache.
Cache strategy controlling when cached responses are used.
Default KTokenRefresher implementation provided by Kindling.
Configuration for buildKHttpClient.
Sealed hierarchy of HTTP-related exceptions thrown by buildKHttpClient.
Thread-safe singleton registry storing all KMockHandler entries.
Hook for observing every response globally.
Contract for automatic token refresh on 401 responses.
Functions
Appends a File to the multipart form with the given partName and contentType.
Builds a pre-configured Ktor HttpClient following the Kindling convention.
Reified helper to create a KMockHandler that captures the return type's serializer. This avoids reflective lookup and correctly handles generic types in the mock response.
Serialises body as JSON and sets Content-Type: application/json.
Sets a multipart/form-data body on the request.