Closed meyt closed 5 years ago
Yes, of course.
But we need a way to handle errors in debug mode, from PEP333:
The exc_info argument, if supplied, must be a Python sys.exc_info() tuple. This argument should be supplied by the application only if start_response is being called by an error handler. If exc_info is supplied, and no HTTP headers have been output yet, start_response should replace the currently-stored HTTP response headers with the newly-supplied ones, thus allowing the application to "change its mind" about the output when an error has occurred.
Sorry for bad title, i just notice a linting problem, start_response
must invoke using positional arguments.
@pylover Please take care about this issue.
https://github.com/Carrene/nanohttp/blob/2d306d8a8e9e4d5e2e76da3587df711244116fb8/nanohttp/application.py#L71