feat: Enable returns_result for HTTP server methods

- Add returns_result = true to HttpServerBox methods (start, stop, accept)
- Update all E2E tests to use .get_value() for Result handling
- Prepare for gradual Result-based error handling migration

This implements the first phase of ChatGPT5's Result正規化 design,
starting with network-related methods as agreed.

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Moe Charm
2025-08-22 06:21:01 +09:00
parent ce9e60972a
commit a5d5c19c1d
3 changed files with 19 additions and 16 deletions

View File

@ -36,8 +36,8 @@ r1 = c.get("http://localhost:8101/a")
r2 = c.get("http://localhost:8102/b")
// accept once per pending request and keep handles
req1 = s1.accept()
req2 = s2.accept()
req1 = s1.accept().get_value()
req2 = s2.accept().get_value()
p1 = req1.path()
p2 = req2.path()
@ -78,7 +78,7 @@ s.start(8103)
c = new HttpClientBox()
r = c.post("http://localhost:8103/long", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
q = s.accept()
q = s.accept().get_value()
body = q.readBody()
resp = new HttpResponseBox()
resp.setStatus(202)