Home
last modified time | relevance | path

Searched hist:51 (Results 26 – 50 of 58) sorted by path

123

/unit/src/
H A Dnxt_http_js.cdiff 2658:95cca8ff8f01 Wed Jan 31 06:51:00 UTC 2024 Zhidao HONG <z.hong@f5.com> NJS: variable access support

This commit introduces the 'vars' JavaScript object to NJS,
enabling direct access to native variables such as $uri and $arg_foo.
The syntax is `${vars.var_name}` or `${'vars[var_name]'}`.

For example:
{
"action": {
"share": "`/www/html${vars.uri}`"
}
}
H A Dnxt_http_parse.cdiff 623:d9631fc41049 Tue Apr 10 13:51:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> HTTP parser: saving partial method.

This is useful for log purposes.
diff 622:8ba4abc08034 Tue Apr 10 13:51:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> HTTP parser: saving unsupported version.

This is useful for log purposes.
diff 621:944d059f7a4b Tue Apr 10 13:51:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> HTTP parser: correct "target" for partial or invalid request line.
H A Dnxt_http_request.cdiff 942:424c1fdef545 Mon Feb 18 13:51:00 UTC 2019 Valentin Bartenev <vbart@nginx.com> Rejecting requests with duplicate "Content-Length".
diff 703:2d536dde84d2 Mon Jun 25 13:51:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> Introduced nxt_length() macro.
H A Dnxt_js.cdiff 2658:95cca8ff8f01 Wed Jan 31 06:51:00 UTC 2024 Zhidao HONG <z.hong@f5.com> NJS: variable access support

This commit introduces the 'vars' JavaScript object to NJS,
enabling direct access to native variables such as $uri and $arg_foo.
The syntax is `${vars.var_name}` or `${'vars[var_name]'}`.

For example:
{
"action": {
"share": "`/www/html${vars.uri}`"
}
}
H A Dnxt_listen_socket.cdiff 703:2d536dde84d2 Mon Jun 25 13:51:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> Introduced nxt_length() macro.
H A Dnxt_main_process.cdiff 680:36ad0bc4c137 Tue May 29 16:51:00 UTC 2018 Igor Sysoev <igor@sysoev.ru> Added version number to main process title.
H A Dnxt_php_sapi.cdiff 703:2d536dde84d2 Mon Jun 25 13:51:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> Introduced nxt_length() macro.
H A Dnxt_random.cdiff 703:2d536dde84d2 Mon Jun 25 13:51:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> Introduced nxt_length() macro.
H A Dnxt_router.cdiff 703:2d536dde84d2 Mon Jun 25 13:51:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> Introduced nxt_length() macro.
diff 530:854f80636745 Thu Feb 08 13:51:00 UTC 2018 Igor Sysoev <igor@sysoev.ru> Router: fixed freed memory access race condition.
H A Dnxt_runtime.cdiff 703:2d536dde84d2 Mon Jun 25 13:51:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> Introduced nxt_length() macro.
diff 226:d0364583ae84 Thu Aug 24 16:51:00 UTC 2017 Valentin Bartenev <vbart@nginx.com> Fixed building by GCC after 924c70e5fd1f.
H A Dnxt_sockaddr.cdiff 703:2d536dde84d2 Mon Jun 25 13:51:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> Introduced nxt_length() macro.
H A Dnxt_sockaddr.hdiff 703:2d536dde84d2 Mon Jun 25 13:51:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> Introduced nxt_length() macro.
H A Dnxt_sprintf.cdiff 703:2d536dde84d2 Mon Jun 25 13:51:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> Introduced nxt_length() macro.
H A Dnxt_string.hdiff 703:2d536dde84d2 Mon Jun 25 13:51:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> Introduced nxt_length() macro.
H A Dnxt_types.hdiff 703:2d536dde84d2 Mon Jun 25 13:51:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> Introduced nxt_length() macro.
H A Dnxt_unit.cdiff 828:b9f7635e6be2 Wed Oct 31 12:51:00 UTC 2018 Alexander Borisov <alexander.borisov@nginx.com> Node.js: added async request execution.
H A Dnxt_unit.hdiff 828:b9f7635e6be2 Wed Oct 31 12:51:00 UTC 2018 Alexander Borisov <alexander.borisov@nginx.com> Node.js: added async request execution.
/unit/src/perl/
H A Dnxt_perl_psgi.cdiff 703:2d536dde84d2 Mon Jun 25 13:51:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> Introduced nxt_length() macro.
/unit/src/python/
H A Dnxt_python_wsgi.cdiff 2593:4f46dba74686 Fri May 26 19:51:00 UTC 2023 Andrew Clayton <a.clayton@nginx.com> Python: Do nxt_unit_sptr_get() earlier in nxt_python_field_value().

This is a preparatory patch for fixing an issue with the encoding of
http header field values.

This patch simply moves the nxt_unit_sptr_get() to the top of the
function where we will need it in the next commit.

Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
/unit/src/ruby/
H A Dnxt_ruby.cdiff 2209:8a3994540aa8 Wed Sep 28 14:51:00 UTC 2022 Zhidao HONG <z.hong@f5.com> Ruby: added support for rack V3.

Ruby applications would fail to start if they were using rack v3

2022/09/28 15:48:46 [alert] 0#80912 [unit] Ruby: Failed to parse rack script
2022/09/28 15:48:46 [notice] 80911#80911 app process 80912 exited with code 1

This was due to a change in the rack API

Rack V2

def self.load_file(path, opts = Server::Options.new)
...
cfgfile.sub!(/^__END__\n.*\Z/m, '')
app = new_from_string cfgfile, path

return app, options
end

Rack V3

def self.load_file(path)
...

return new_from_string(config, path)
end

This patch handles _both_ the above APIs by correctly handling the cases
where we do and don't get an array returned from
nxt_ruby_rack_parse_script().

Closes: <https://github.com/nginx/unit/issues/755>
Tested-by: Andrew Clayton <a.clayton@nginx.com>
Reviewed-by: Andrew Clayton <a.clayton@nginx.com>
[ Andrew: Patch by Zhidao, commit message by me with input from Zhidao ]
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
diff 703:2d536dde84d2 Mon Jun 25 13:51:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> Introduced nxt_length() macro.
/unit/src/test/
H A Dnxt_utf8_test.cdiff 703:2d536dde84d2 Mon Jun 25 13:51:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> Introduced nxt_length() macro.
/unit/src/wasm/
H A Dnxt_rt_wasmtime.cdiff 2556:c1a81696909c Fri Sep 08 20:51:00 UTC 2023 Andrew Clayton <a.clayton@nginx.com> Wasm: Allow to set the HTTP response status.

This commit enables WebAssembly modules to set the HTTP response status
to something other than the previously hard coded '200 OK'.

To do this they can make a call to nxt_wasm_set_resp_status() providing
the required status code.

If this function isn't called the status code defaults to '200 OK'. The
WebAssembly module can also return -1 from the request_handler function
as a short cut to signal a '500 Internal Server Error'.

Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
H A Dnxt_wasm.cdiff 2556:c1a81696909c Fri Sep 08 20:51:00 UTC 2023 Andrew Clayton <a.clayton@nginx.com> Wasm: Allow to set the HTTP response status.

This commit enables WebAssembly modules to set the HTTP response status
to something other than the previously hard coded '200 OK'.

To do this they can make a call to nxt_wasm_set_resp_status() providing
the required status code.

If this function isn't called the status code defaults to '200 OK'. The
WebAssembly module can also return -1 from the request_handler function
as a short cut to signal a '500 Internal Server Error'.

Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
H A Dnxt_wasm.hdiff 2556:c1a81696909c Fri Sep 08 20:51:00 UTC 2023 Andrew Clayton <a.clayton@nginx.com> Wasm: Allow to set the HTTP response status.

This commit enables WebAssembly modules to set the HTTP response status
to something other than the previously hard coded '200 OK'.

To do this they can make a call to nxt_wasm_set_resp_status() providing
the required status code.

If this function isn't called the status code defaults to '200 OK'. The
WebAssembly module can also return -1 from the request_handler function
as a short cut to signal a '500 Internal Server Error'.

Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
/unit/test/python/chunked/
H A Dwsgi.py2506:6c8789eb55cd Tue Jul 11 14:51:00 UTC 2023 Andrei Zeliankou <zelenkov@nginx.com> Tests: added tests for response header variables.

123