summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_set_headers.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-08-20var: Restrict nxt_tstr_query() to only support synchronous operationZhidao HONG1-3/+2
Initially, variable query was designed to accomodate both synchronous and asynchronous operations. However, upon consideration of actual requirements, we recognized that asynchronous support was not needed. The refactoring ensures that the success or failure of the variable query operation is now directly indicated by its return value. This change streamlines the function's usage and enhances code clarity, as it facilitates immediate error handling without the need for asynchronous callbacks or additional error checking functions. Note the patch only works for Unit native variables but not njs variables.
2023-08-09HTTP: controlling response headers support.Zhidao HONG1-0/+176