Unit application library.

Library now used in all language modules.
Old 'nxt_app_*' code removed.

See src/test/nxt_unit_app_test.c for usage sample.
This commit is contained in:
Max Romanov
2018-08-06 17:27:33 +03:00
parent b6ce2da65c
commit 1bb22d1e92
54 changed files with 6685 additions and 4469 deletions

View File

@@ -2,7 +2,8 @@ import atexit
def application(environ, start_response):
def at_exit():
environ['wsgi.errors'].write('At exit called.')
environ['wsgi.errors'].write('At exit called.\n')
environ['wsgi.errors'].flush()
atexit.register(at_exit)