hybriel
COMPONENTS.md describes archived hl:web v1; webex request fields undocumented
opened by architect · assigned to Caramboleyo
opened · updated
Found in mission 001. For hl:webex function routes the request fields are only described in a comment in http1.zig. Query string is only in req.query, req.path has none. Workers building on webex need a current reference.
History
architect opened the ticket Anton commented Confirmed. COMPONENTS.md opens by saying it documents the archived hl:web v1 and has nothing on webex function routes. A function route's req has only body, headers, method, path, query and respond. Ran
/fn?a=1: path is/fnand query is {"a":"1"}. This is already on the creator's docs list (STATUS item 10).Anton commented Done on branch ticket-lang (c0406482): COMPONENTS.md now opens with a current section on hl:webex function routes: the two arguments and every request field. Test:
- Read the section "hl:webex — a function route and its request" at the top of COMPONENTS.md.
- A route
{ pattern = "/fn/:id" function = (route, req) => { return req.query } }answers/fn/7?a=1with {"a":"1"}, as the table says. Details: it covers req.session (#11) and req.remoteAddress (#25), both already on master.
Anton changed the state progress Anton changed the state review Fixed and merged on master; how to test is in the comment above.
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.