Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2023-02-21 | Tests: added Python tests with encoding. | Andrei Zeliankou | 2 | -0/+20 | |
2023-02-21 | Tests: switched to using f-strings. | Andrei Zeliankou | 7 | -23/+15 | |
Previously, it was necessary to support older versions of Python for compatibility. F-strings were released in Python 3.6. Python 3.5 was marked as unsupported by the end of 2020, so now it's possible to start using f-strings safely for better readability and performance. | |||||
2023-02-21 | Tests: added Python tests with encoding. | Andrei Zeliankou | 2 | -0/+20 | |
2022-12-14 | Python: Added "prefix" to configuration. | OutOfFocus4 | 4 | -0/+51 | |
This patch gives users the option to set a `"prefix"` attribute for Python applications, either at the top level or for specific `"target"`s. If the attribute is present, the value of `"prefix"` must be a string beginning with `"/"`. If the value of the `"prefix"` attribute is longer than 1 character and ends in `"/"`, the trailing `"/"` is stripped. The purpose of the `"prefix"` attribute is to set the `SCRIPT_NAME` context value for WSGI applications and the `root_path` context value for ASGI applications, allowing applications to properly route requests regardless of the path that the server uses to expose the application. The context value is only set if the request's URL path begins with the value of the `"prefix"` attribute. In all other cases, the `SCRIPT_NAME` or `root_path` values are not set. In addition, for WSGI applications, the value of `"prefix"` will be stripped from the beginning of the request's URL path before it is sent to the application. Reviewed-by: Andrei Zeliankou <zelenkov@nginx.com> Reviewed-by: Artem Konev <artem.konev@nginx.com> Signed-off-by: Alejandro Colomar <alx@nginx.com> | |||||
2022-09-07 | Tests: minor fixes. | Andrei Zeliankou | 1 | -1/+0 | |
2022-06-20 | Tests: forwarded header replacement tests. | Zhidao HONG | 1 | -0/+10 | |
2022-04-11 | Tests: style. | Andrei Zeliankou | 1 | -5/+7 | |
2021-10-18 | Tests: style. | Andrei Zeliankou | 7 | -11/+5 | |
2021-08-12 | Tests: client IP address replacement. | Oisin Canty | 1 | -0/+4 | |
2021-07-29 | Application restart introduced. | Max Romanov | 3 | -0/+24 | |
When processing a restart request, the router sends a QUIT message to all existing processes of the application. Then, a new shared application port is created to ensure that new requests won't be handled by the old processes of the application. | |||||
2021-05-24 | Tests: test_settings_send_timeout improved. | Andrei Zeliankou | 1 | -0/+6 | |
Data length adjusts depending on socket buffer size when it's possible. | |||||
2021-05-20 | Tests: Python targets. | Oisin Canty | 3 | -4/+74 | |
2021-04-05 | Tests: style. | Andrei Zeliankou | 29 | -181/+218 | |
2021-02-04 | Tests: added tests for "path" option in Python application. | Andrei Zeliankou | 1 | -0/+8 | |
2020-11-19 | Tests: added tests for a "discard_unsafe_fields" option. | Andrei Zeliankou | 1 | -0/+9 | |
2020-11-10 | Python: supporting ASGI legacy protocol. | Max Romanov | 2 | -0/+30 | |
Introducing manual protocol selection for 'universal' apps and frameworks. | |||||
2020-11-05 | Tests: added Python threading tests. | Max Romanov | 2 | -0/+42 | |
2020-10-05 | Tests: added ASGI Lifespan. | Andrei Zeliankou | 4 | -0/+43 | |
2020-10-01 | Tests: added ASGI HTTP applications. | Max Romanov | 8 | -0/+195 | |
2020-10-01 | Tests: added ASGI WebSocket. | Max Romanov | 2 | -0/+43 | |
2020-09-21 | Tests: changing Python application callable name. | Max Romanov | 1 | -0/+7 | |
2020-05-28 | Tests: Added rootfs tests. | Tiago Natel de Moura | 1 | -0/+31 | |
2020-04-03 | Tests: use "return" action in upstream tests. | Andrei Zeliankou | 4 | -24/+1 | |
2020-03-30 | Handling change file message in libunit. | Max Romanov | 1 | -1/+1 | |
This is required for proper log file rotation action. | |||||
2020-03-12 | Tests: added Python input readline and iterator tests. | Max Romanov | 4 | -3/+55 | |
2020-03-12 | Tests: round robin upstream tests. | Andrei Zeliankou | 3 | -0/+24 | |
2020-02-05 | Tests: added test for uploading files with SSL. | Tiago Natel de Moura | 1 | -0/+27 | |
* * * [mq]: multipart | |||||
2019-11-14 | Tests: Python exception tests. | Andrei Zeliankou | 1 | -0/+45 | |
2019-11-14 | Tests: proxy tests. | Andrei Zeliankou | 1 | -0/+25 | |
2019-11-13 | Tests: added Python test with threading. | Andrei Zeliankou | 1 | -0/+33 | |
2019-11-11 | Tests: added tests for setting user and group. | Tiago Natel | 1 | -0/+18 | |
2019-10-23 | Tests: added USR1 signal test for unit.log. | Andrey Zelenkov | 1 | -0/+9 | |
2019-10-23 | Tests: added flush() in "errors_write" Python application. | Andrey Zelenkov | 1 | -0/+1 | |
2019-04-09 | Tests: speed up tests. | Andrey Zelenkov | 1 | -1/+0 | |
2019-02-27 | Tests: "Host" header tests. | Andrey Zelenkov | 1 | -0/+7 | |
2018-08-06 | Unit application library. | Max Romanov | 3 | -3/+6 | |
Library now used in all language modules. Old 'nxt_app_*' code removed. See src/test/nxt_unit_app_test.c for usage sample. | |||||
2018-05-29 | Tests: configuration of environment variables. | Andrey Zelenkov | 1 | -0/+13 | |
2018-05-21 | Tests: added tests for SERVER_SOFTWARE variable. | Andrey Zelenkov | 1 | -0/+1 | |
2018-04-26 | Tests: added test for callable write() in Python. | Andrey Zelenkov | 1 | -0/+5 | |
2018-04-05 | Tests: added Python test with not iterable object. | Andrey Zelenkov | 3 | -0/+9 | |
2018-04-02 | Tests: more Python tests. | Andrey Zelenkov | 13 | -6/+67 | |
2018-04-02 | Tests: added Python test with iterator context. | Andrey Zelenkov | 1 | -0/+23 | |
2018-03-16 | Tests: HTTP header field and value tests. | Andrey Zelenkov | 1 | -0/+7 | |
2018-02-20 | Tests: reworked python tests with application. | Andrey Zelenkov | 7 | -0/+58 | |