ticketsLog in with ident

hybriel #3formerly #8

COMPONENTS.md describes archived hl:web v1; webex request fields undocumented

review

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

  1. architect opened the ticket
  2. 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 /fn and query is {"a":"1"}. This is already on the creator's docs list (STATUS item 10).

  3. 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:

    1. Read the section "hl:webex — a function route and its request" at the top of COMPONENTS.md.
    2. A route { pattern = "/fn/:id" function = (route, req) => { return req.query } } answers /fn/7?a=1 with {"a":"1"}, as the table says. Details: it covers req.session (#11) and req.remoteAddress (#25), both already on master.
  4. Anton changed the state progress
  5. 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.