From 1d13c685f6dfb0c57f751ec3274b15b36a82a0ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EC=B0=AC=EC=98=81?= Date: Fri, 15 May 2026 11:09:23 +0900 Subject: [PATCH] fix: align HTTP module naming --- .../kotlin/dev/jetpack/engine/runtime/module/HttpModule.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/dev/jetpack/engine/runtime/module/HttpModule.kt b/src/main/kotlin/dev/jetpack/engine/runtime/module/HttpModule.kt index b30c21a..683f4d5 100644 --- a/src/main/kotlin/dev/jetpack/engine/runtime/module/HttpModule.kt +++ b/src/main/kotlin/dev/jetpack/engine/runtime/module/HttpModule.kt @@ -32,7 +32,7 @@ class HttpModule { private val gson = Gson() fun spec(): ModuleSpec = ModuleSpec( - name = "Http", + name = "http", value = asValue(), fields = mapOf( "get" to callable( @@ -121,7 +121,7 @@ class HttpModule { val response = try { client.send(request, BodyHandlers.ofString()) } catch (e: Exception) { - throw RuntimeException("Http request failed: ${e.message}") + throw RuntimeException("HTTP request failed: ${e.message}") } val status = response.statusCode() return JObject( @@ -144,7 +144,7 @@ class HttpModule { is JString -> value.value is JList -> value.elements.map { toNativeValue(it) } is JObject -> toNativeMap(value) - else -> throw RuntimeException("Http request body contains a non-serializable value of type '${value.typeName()}'") + else -> throw RuntimeException("HTTP request body contains a non-serializable value of type '${value.typeName()}'") } private fun toNativeMap(obj: JObject): Map =