NAME
6b - wombat's burrow protocol
DESCRIPTION
Wombat's burrow protocol, 6b, is used for messages between clients and servers: a client sends a request, and the server answers with a response. A request is stateless and synchronous. A server that needs time answers at once and reports its progress in a file.
Messages
A request is made of a verb, a path and optionally a body. The verb names the action, the path locates the resource and the body is text sent to the server.
A response is either a success, which carries text, or an error, which carries a reason. The text may be empty. The reason is a short line saying what went wrong.
Verbs
- GET
reads the resource.
- PUT
gives the body to the resource.
- DEL
deletes the resource.
Paths
A path starts with /, and its parts are separated by /. It contains no spaces or newlines.
Links
The text of a response may contain links.
=> <path> [ <label> ]
The link is relative to the last / of the request's path, unless it starts with /.
Errors
Aim to reuse kernel-emitted when possible.
SEE ALSO
BACKLINKS
intro(doc), wom(sys), req(bin), wombat(site:doc), hop(bin), journal(var:log)