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:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user