Files
hakorune/local_tests/test_http_server_working.nyash
Moe Charm cc8553380c feat: Add multi-box plugin support (v2) with test implementation
- Extend plugin-tester to support multi-box plugins with v2 API
- Add nyash_plugin_get_box_count/get_box_info/get_type_id functions
- Create test multi-box plugin providing TestBoxA and TestBoxB
- Update plugin-system.md documentation for v2 format
- Add nyash.toml v2 specification for multi-box support
- Successfully tested multi-box plugin lifecycle and type resolution

This enables one plugin to provide multiple Box types, solving the
dependency issue where HTTPServerBox needs SocketBox.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-19 01:13:48 +09:00

25 lines
714 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// HTTPServerBoxの動作テスト
static box Main {
init {
ConsoleBox console,
HTTPServerBox server
}
main() {
me.console = new ConsoleBox()
me.console.log("🌐 HTTPServerBoxテスト開始...")
// HTTPServerBoxを作成
me.server = new HTTPServerBox()
me.console.log("✅ HTTPServerBox作成成功")
// 基本情報を表示
me.console.log("HTTPServerBox: " + me.server.toString())
// bind設定実際のサーバー起動はしない
me.server.bind("127.0.0.1", 8080)
me.console.log("✅ Bind設定完了: 127.0.0.1:8080")
return "完了"
}
}