mirror of
				https://github.moeyy.xyz/https://github.com/GeWuYou/forgeboot
				synced 2025-10-28 08:58:52 +08:00 
			
		
		
		
	- 新增 forgeboot-http 模块,包含 Ktor HTTP 客户端相关代码 - 实现了简单的 HTTP 客户端类和配置类 - 添加了 HTTP 请求重试机制 - 集成了日志记录和 JSON 序列化功能 - 编写了单元测试用例 - 更新了项目配置文件,添加了新模块的依赖
		
			
				
	
	
		
			15 lines
		
	
	
		
			520 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			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)
 | |
| }
 |