[#50] Report errors in NOGBL mode; misc small changes
The main change is moving setting the error data from
^TMP("HTTPERR",$J)
to HTTPERR
. This way globals are not required
anymore, and we can report errors in NOGBL mode.
src/webinit.m
:
- v1.1.2 -> 1.1.3
src/_webapi.m
:
- Update POSTTEST entry point so it's usable in the no global mode
- Add fonts to the MIME list
src/_webhome.m
:
- Fix error check
- If no request handlers are installed, say so explicitly
src/_web{req,rsp,utils}.m
- Move error data from
^TMP("HTTPERR",$J)
toHTTPERR
. - Remove unused VPR server errors dealing with patient data
src/_weburl.m
- Add various handlers for the unit tests
src/_webtest.m
- Improve Error checks
- Add
tpost
test that explicitly tests HTTP post - Remove test that check for `^TMP("HTTPERR") as that doesn't exist anymore after the refactoring done in this PR.
- Add
NOGBLERR
test that tests for errors in NOGBL mode - Add
NOGBLPOST
test that tests HTTP POST in NOGBL mode
Cosmetic changes:
doc/INSTALL.md
doc/debugging.md
doc/important-utilities.md
src/_webjson.m
src/_webjsonDecode.m
src/_webjsonEncode.m