Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2022-11-20 | Var: separating nxt_tstr_t from nxt_var_t. | Zhidao HONG | 1 | -1/+1 | |
It's for the introduction of njs support. For each option that supports native variable and JS template literals introduced next, it's unified as template string. No functional changes. | |||||
2022-08-29 | Implemented basic statistics API. | Valentin Bartenev | 1 | -0/+2 | |
2022-07-14 | Var: dynamic variables support. | Zhidao HONG | 1 | -0/+1 | |
This commit adds the variables $arg_NAME, $header_NAME, and $cookie_NAME. | |||||
2022-06-22 | Constified numerous function parameters. | Andrew Clayton | 1 | -3/+3 | |
As was pointed out by the cppcheck[0] static code analysis utility we can mark numerous function parameters as 'const'. This acts as a hint to the compiler about our intentions and the compiler will tell us when we deviate from them. [0]: https://cppcheck.sourceforge.io/ | |||||
2022-04-26 | Added new array APIs that also work with non-arrays. | Alejandro Colomar | 1 | -0/+4 | |
Similar to how C pointers to variables can always be considered as pointers to the first element of an array of size 1 (see the following code for an example of how they are equivalent), treating non-NXT_CONF_VALUE_ARRAY as if they were NXT_CONF_VALUE_ARRAYs of size 1 allows for simpler and more generic code. void foo(ptrdiff_t sz, int arr[sz]) { for (ptrdiff_t i = 0; i < sz; i++) arr[i] = 0; } void bar(void) { int x; int y[1]; foo(1, &x); foo(1, y); } nxt_conf_array_elements_count_or_1(): Similar to nxt_conf_array_elements_count(). Return a size of 1 when input is non-array, instead of causing undefined behavior. That value (1) makes sense because it will be used as the limiter of a loop that loops over the array and calls nxt_conf_get_array_element_or_itself(), which will return a correct element for such loops. nxt_conf_get_array_element_or_itself(): Similar to nxt_conf_get_array_element(). Return the input pointer unmodified (i.e., a pointer to the unique element of a hypothetical array), instead of returning NULL, which wasn't very useful. nxt_conf_array_qsort(): Since it's a no-op for non-arrays, this API can be reused. | |||||
2022-04-26 | Added 'const' for read-only function parameter. | Alejandro Colomar | 1 | -1/+1 | |
That parameter is not being modified in the function. Make it 'const' to allow passing 'static const' variables. | |||||
2021-10-09 | Configuration: automatic migration to the new "share" behavior. | Zhidao HONG | 1 | -0/+2 | |
2020-05-14 | PHP: implemented "targets" option. | Valentin Bartenev | 1 | -1/+1 | |
This allows to specify multiple subsequent targets inside PHP applications. For example: { "listeners": { "*:80": { "pass": "routes" } }, "routes": [ { "match": { "uri": "/info" }, "action": { "pass": "applications/my_app/phpinfo" } }, { "match": { "uri": "/hello" }, "action": { "pass": "applications/my_app/hello" } }, { "action": { "pass": "applications/my_app/rest" } } ], "applications": { "my_app": { "type": "php", "targets": { "phpinfo": { "script": "phpinfo.php", "root": "/www/data/admin", }, "hello": { "script": "hello.php", "root": "/www/data/test", }, "rest": { "root": "/www/data/example.com", "index": "index.php" }, } } } } | |||||
2020-03-30 | Configuration: support for rational numbers. | Valentin Bartenev | 1 | -1/+1 | |
2019-10-11 | Fixed passing false in namespace flags. | Tiago Natel | 1 | -0/+1 | |
This patch closes #328 in github. | |||||
2019-09-19 | Basic support for serving static files. | Valentin Bartenev | 1 | -0/+1 | |
2019-04-24 | Configuration: support for POST operations on arrays. | Valentin Bartenev | 1 | -2/+11 | |
It allows to add an array element without specifying the index. | |||||
2019-02-28 | Introducing Java Servlet Container beta. | Max Romanov | 1 | -1/+1 | |
2019-02-26 | Introduced nxt_conf_array_qsort(). | Igor Sysoev | 1 | -0/+2 | |
2019-02-26 | Introduced nxt_conf_array_elements_count(). | Igor Sysoev | 1 | -0/+1 | |
2018-09-20 | Controller: certificates storage interface. | Valentin Bartenev | 1 | -0/+12 | |
2018-09-20 | Deduplicated string value initializations. | Valentin Bartenev | 1 | -0/+1 | |
2018-06-07 | Exported functions for accessing configuration values. | Valentin Bartenev | 1 | -9/+10 | |
2018-01-29 | Introducing extended app process management. | Max Romanov | 1 | -0/+1 | |
- Pre-fork 'processes.spare' application processes; - fork more processes to keep 'processes.spare' idle processes; - fork on-demand up to 'processes.max' count; - scale down idle application processes above 'processes.spare' after 'processes.idle_timeout'; - number of concurrently started application processes also limited by 'processes.spare' (or 1, if spare is 0). | |||||
2017-10-10 | Basic validation errors. | Valentin Bartenev | 1 | -8/+17 | |
2017-08-16 | Introduced nxt_conf_get_array_element(). | Valentin Bartenev | 1 | -0/+2 | |
2017-08-16 | Object mapping interface extended with more string types. | Valentin Bartenev | 1 | -2/+4 | |
2017-08-11 | Controller: more HTTP headers and detailed JSON parsing errors. | Valentin Bartenev | 1 | -3/+16 | |
2017-07-18 | Configuration: reduced memory consumption of long strings. | Valentin Bartenev | 1 | -2/+2 | |
2017-07-10 | Configuration: nxt_conf_map_object() improvements. | Valentin Bartenev | 1 | -1/+1 | |
2017-07-06 | Controller: sending JSON configuration to router. | Valentin Bartenev | 1 | -0/+8 | |
2017-07-05 | Configuration: basic validation of schema. | Valentin Bartenev | 1 | -0/+13 | |
2017-06-29 | Added nxt_msec_t element to nxt_conf_map_object(). | Igor Sysoev | 1 | -0/+1 | |
2017-06-28 | Configuration: reduced names of structures, functions, and macros. | Valentin Bartenev | 1 | -36/+33 | |
2017-06-28 | JSON property iterator nxt_conf_json_object_next_member(). | Igor Sysoev | 1 | -0/+2 | |
2017-06-26 | Interface for mapping JSON configuration objects to C structures. | Valentin Bartenev | 1 | -2/+25 | |
2017-06-23 | Configuration printing functions splitted in two parts. | Valentin Bartenev | 1 | -1/+3 | |
Requested by Igor. | |||||
2017-06-23 | Renames and reordering of parameters in configuration parser functions. | Valentin Bartenev | 1 | -10/+13 | |
Requested by Igor. | |||||
2017-06-20 | Using new memory pool implementation. | Igor Sysoev | 1 | -3/+3 | |
2017-05-30 | Controller: support for partial PUT and DELETE operations. | Valentin Bartenev | 1 | -1/+10 | |
2017-05-26 | Style and a trivial fix. | Valentin Bartenev | 1 | -1/+1 | |
2017-05-23 | Optimized internal representation of JSON objects and arrays. | Valentin Bartenev | 1 | -0/+2 | |
2017-05-18 | Controller: partial retrieving of configuration. | Valentin Bartenev | 1 | -0/+2 | |
2017-05-16 | Controller: pretty-printing of JSON responses. | Valentin Bartenev | 1 | -2/+8 | |
2017-05-15 | Controller: trivial abilities to save and request configuration. | Valentin Bartenev | 1 | -1/+1 | |
Now you can get current configuration with: $ curl 127.0.0.1:8443 and put new configuration with: $ curl -X PUT -d @conf.json 127.0.0.1:8443 | |||||
2017-04-11 | JSON output in controller. | Valentin Bartenev | 1 | -0/+2 | |
2017-04-10 | JSON parsing in controller. | Valentin Bartenev | 1 | -0/+19 | |