kMockHandler

inline fun <T> kMockHandler(method: HttpMethod, path: String, status: HttpStatusCode = HttpStatusCode.OK, noinline resolver: suspend (params: Map<String, String>, body: String?) -> T): KMockHandler(source)

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.