1.1 KiB
1.1 KiB
Claro Web Server Plan
Current release: Claro v1.18.26
Claro currently has beginner HTTP client commands and offline claro:// test URLs. A web server API is not complete yet.
Ready now
HTTP CHECKHTTP GETHTTP SAVE- offline
claro://helloand related lesson/test URLs LASTHTTP- real
http://andhttps://requests throughcurlwhen available
Web server goals
A beginner web server should make tiny local apps possible without exposing learners to unsafe network defaults.
Desired properties:
- localhost-only by default
- readable route syntax
- simple request/response values
- friendly port-in-use errors
- easy stop behavior
- examples that work offline
Possible future syntax sketch
WEB START LOCAL PORT 8080
WHEN GET "/"
WEB SAY "Hello from Claro"
END
WEB WAIT
This is a sketch, not a committed syntax.
Needed before implementation
- route syntax decision
- request value model
- response helpers
- safe defaults for host/port
- tests for port conflicts and malformed requests
- docs explaining localhost vs public internet
See also:
V1_17_NETWORKING.mdCURRENT_STATUS.mdROADMAP.md