summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_conf.c (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2020-04-01Fixed build with Clang 10, broken by 32578e837322.Valentin Bartenev1-1/+3
This silences the -Wimplicit-int-float-conversion warning.
2020-03-30Configuration: support for rational numbers.Valentin Bartenev1-158/+99
2020-03-25Configuration: fixed comments parsing.Valentin Bartenev1-1/+5
Unclosed multi-line comments and "/" at the end of JSON shouldn't be allowed.
2020-02-20Configuration: stripping comments from the input JSON.Valentin Bartenev1-6/+66
This allows to have JavaScript-like comments in the uploading JSON.
2019-10-11Fixed passing false in namespace flags.Tiago Natel1-0/+7
This patch closes #328 in github.
2019-09-18Configuration: added ability to modify object members with slashes.Valentin Bartenev1-39/+49
Example: PUT/POST/DELETE /config/listeners/unix:%2Fpath%2Fto%2Fsocket This follows a49ee872e83d.
2019-09-16Configuration: added ability to access object members with slashes.Valentin Bartenev1-0/+15
Now URI encoding can be used to escape "/" in the request path: GET /config/listeners/unix:%2Fpath%2Fto%2Fsocket/
2019-04-24Configuration: support for POST operations on arrays.Valentin Bartenev1-11/+36
It allows to add an array element without specifying the index.
2019-04-24Configuration: support for manipulations of array elements.Valentin Bartenev1-29/+141
Now PUT and DELETE operations also work on elements. This closes #242 issue on GitHub.
2019-04-24Refactored nxt_conf_op_compile().Valentin Bartenev1-7/+8
Now index is always initialized for create operations. The changes in nxt_conf_op_compile() simplify adding upcoming support of operations with arrays. No functional changes.
2019-04-24Removed unused field from nxt_conf_op_s.Valentin Bartenev1-2/+1
2019-02-26Introduced nxt_conf_array_qsort().Igor Sysoev1-0/+16
2019-02-26Introduced nxt_conf_array_elements_count().Igor Sysoev1-0/+7
2018-11-15Fixed discovering of modules on 64-bit big-endian systems.Valentin Bartenev1-1/+1
The nxt_conf_map_object() function used nxt_int_t for NXT_CONF_MAP_INT, which was 8 bytes long on 64-bit systems. But the nxt_port_main_start_worker_handler() used it to map into the int field of the nxt_common_app_conf_t structure, which was 4 bytes. As the result, on a 64-bit big-endian system all the meaningful module type numbers were assigned into the gap above the "type" field. The bug was discovered on IBM/S390x.
2018-09-20Controller: addressing of array elements in requests.Valentin Bartenev1-1/+20
2018-09-20Controller: certificates storage interface.Valentin Bartenev1-0/+99
2018-09-20Deduplicated string value initializations.Valentin Bartenev1-64/+22
2018-06-25Introduced nxt_length() macro.Valentin Bartenev1-4/+4
2018-04-04Style: capitalized letters in hexadecimal literals.Valentin Bartenev1-7/+7
2018-03-29nxt_lvlhsh_each() refactoring and nxt_lvlhsh_each_init().Igor Sysoev1-2/+1
2018-01-29Introducing extended app process management.Max Romanov1-0/+7
- 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-11-21Fixed crash on invalid JSON number.Valentin Bartenev1-0/+4
2017-09-15Introducing application timeout.Max Romanov1-1/+1
2017-09-12Fixed error messages grammar.Nick Shadrin1-49/+48
2017-08-16Introduced nxt_conf_get_array_element().Valentin Bartenev1-0/+19
2017-08-16Object mapping interface extended with more string types.Valentin Bartenev1-6/+41
2017-08-15Fixed building on ppc.Valentin Bartenev1-1/+1
2017-08-11Controller: more HTTP headers and detailed JSON parsing errors.Valentin Bartenev1-37/+320
2017-08-11Fixed parsing of JSON encoded UTF-16 surrogate pairs.Valentin Bartenev1-16/+13
2017-08-08Fixed JSON escape sequence parsing.Valentin Bartenev1-2/+4
2017-08-02Using old-style packed attribute specification for compatibility.Max Romanov1-4/+4
2017-07-25Fixed building on Solaris by Sun C.Max Romanov1-2/+2
2017-07-18Configuration: improved declaration of short strings.Valentin Bartenev1-10/+14
2017-07-18Configuration: reduced memory consumption of long strings.Valentin Bartenev1-24/+33
2017-07-18Configuration: reduced memory consumption.Valentin Bartenev1-4/+4
2017-07-10Configuration: nxt_conf_map_object() improvements.Valentin Bartenev1-14/+9
2017-07-07Controller: relaxed JSON parser.Valentin Bartenev1-80/+72
Now it allows commas after the last elements in objects and arrays, as it's a common Igor's mistake.
2017-07-06Controller: sending JSON configuration to router.Valentin Bartenev1-1/+65
2017-07-06Fixed mapping of int32_t in nxt_conf_map_object().Valentin Bartenev1-1/+1
2017-07-05Configuration: basic validation of schema.Valentin Bartenev1-51/+85
2017-06-29Added nxt_msec_t element to nxt_conf_map_object().Igor Sysoev1-9/+15
2017-06-28Configuration: reduced names of structures, functions, and macros.Valentin Bartenev1-303/+297
2017-06-28JSON property iterator nxt_conf_json_object_next_member().Igor Sysoev1-0/+28
2017-06-26Interface for mapping JSON configuration objects to C structures.Valentin Bartenev1-1/+119
2017-06-26Simplified nxt_conf_json_object_get_member().Valentin Bartenev1-7/+1
2017-06-26Build on Solaris 11 fixed.Max Romanov1-1/+1
2017-06-23Configuration printing functions splitted in two parts.Valentin Bartenev1-158/+208
Requested by Igor.
2017-06-23Renames and reordering of parameters in configuration parser functions.Valentin Bartenev1-238/+251
Requested by Igor.
2017-06-23Configuration: fixed parsing of JSON literals.Valentin Bartenev1-3/+3
2017-06-21Removed surplus type casting from nxt_memcmp() calls.Valentin Bartenev1-9/+3