gewuyou e92a53b194 feat(http): 添加 Ktor HTTP客户端模块
- 新增 forgeboot-http 模块,包含 Ktor HTTP 客户端相关代码
- 实现了简单的 HTTP 客户端类和配置类
- 添加了 HTTP 请求重试机制
- 集成了日志记录和 JSON 序列化功能
- 编写了单元测试用例
- 更新了项目配置文件,添加了新模块的依赖
2025-08-13 16:27:59 +08:00

15 lines
520 B
Plaintext

dependencies {
api(libs.io.ktor.clientCore)
implementation(libs.io.ktor.clientContentNegotiation)
implementation(libs.io.ktor.serializationKotlinxJson)
implementation(libs.io.ktor.clientLogging)
// test
testImplementation(libs.org.junit.jupiter.api)
testImplementation(libs.io.ktor.clientCio)
testImplementation(libs.io.ktor.clientMock)
testImplementation(libs.kotlinxCorountinesTest)
testRuntimeOnly(libs.org.junit.jupiter.engine)
testRuntimeOnly(libs.org.junit.platform)
}