Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | added a FIXME, removed another. Now it's really bed time. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | json |
Files: | files | file ages | folders |
SHA1: |
8b814778c920b9191ac38c3ed2fd1b63 |
User & Date: | stephan 2011-09-21 21:23:02.091 |
Context
2011-09-22
| ||
14:58 | Added /json/whoami. ... (check-in: 7a65dd0e user: stephan tags: json) | |
2011-09-21
| ||
21:23 | added a FIXME, removed another. Now it's really bed time. ... (check-in: 8b814778 user: stephan tags: json) | |
21:17 | Added my AJAX test code after accidentally deleting my local copy (thank goodness the test server still had a copy). See the README if you want to set it up locally under apache. ... (check-in: c6c5ad13 user: stephan tags: json) | |
Changes
Changes to src/json.c.
︙ | ︙ | |||
289 290 291 292 293 294 295 | /* ** Gets a POST/POST.payload/GET/COOKIE/ENV value. The returned memory ** is owned by the g.json object (one of its sub-objects). Returns ** NULL if no match is found. ** ** ENV means the system environment (getenv()). ** | | | | | | | 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 | /* ** Gets a POST/POST.payload/GET/COOKIE/ENV value. The returned memory ** is owned by the g.json object (one of its sub-objects). Returns ** NULL if no match is found. ** ** ENV means the system environment (getenv()). ** ** Precedence: POST.payload, GET/COOKIE/non-JSON POST, JSON POST, ENV. ** ** FIXME: the precedence SHOULD be: GET, POST.payload, POST, COOKIE, ** ENV, but the amalgamation of the GET/POST vars makes it difficult ** for me to do that. Since fossil only uses one cookie, cookie ** precedence isn't a real/high-priority problem. */ cson_value * json_getenv( char const * zKey ){ cson_value * rc; rc = g.json.reqPayload.o ? cson_object_get( g.json.reqPayload.o, zKey ) : NULL; if(rc){ |
︙ | ︙ | |||
1576 1577 1578 1579 1580 1581 1582 | static cson_value * json_page_branch(unsigned int depth){ return json_page_dispatch_helper(depth,&JsonPageDefs_Branch[0]); } /* ** Impl for /json/branch/list ** | < < < < | 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 | static cson_value * json_page_branch(unsigned int depth){ return json_page_dispatch_helper(depth,&JsonPageDefs_Branch[0]); } /* ** Impl for /json/branch/list ** ** ** CLI mode options: ** ** --range X | -r X, where X is one of (open,closed,all) ** (only the first letter is significant, default=open). ** -a (same as --range a) ** -c (same as --range c) |
︙ | ︙ |