Home
last modified time | relevance | path

Searched refs:env (Results 1 – 25 of 88) sorted by last modified time

1234

/unit/pkg/deb/
H A DMakefile275 …( cd debuild/unit-$(VERSION)/debian/build-unit && env python3 -m pytest --user=nobody $(PYTEST_ARG…
286 …( cd debuild/unit-$(VERSION)/debian/build-unit-debug && env python3 -m pytest --user=nobody $(PYTE…
/unit/pkg/rpm/
H A DMakefile232 …( cd rpmbuild/BUILD/unit-$(VERSION) && rm -f build && ln -s build-nodebug build && env python3 -m …
243 …( cd rpmbuild/BUILD/unit-$(VERSION) && rm -f build && ln -s build-debug build && env python3 -m py…
/unit/src/perl/
H A Dnxt_perl_psgi.c49 SV *env, SV *app, nxt_unit_request_info_t *req);
334 SV *env, SV *app, nxt_unit_request_info_t *req) in nxt_perl_psgi_call_var_application() argument
344 XPUSHs(env); in nxt_perl_psgi_call_var_application()
1204 SV *env, *result; in nxt_perl_psgi_request_handler() local
1219 env = nxt_perl_psgi_env_create(my_perl, req); in nxt_perl_psgi_request_handler()
1220 if (nxt_slow_path(env == NULL)) { in nxt_perl_psgi_request_handler()
1230 result = nxt_perl_psgi_call_var_application(my_perl, env, pctx->app, in nxt_perl_psgi_request_handler()
1258 SvREFCNT_dec(env); in nxt_perl_psgi_request_handler()
/unit/src/
H A Dnxt_application.c900 char *env, *p; in nxt_app_set_environment() local
916 env = nxt_malloc(name.length + value.length + 2); in nxt_app_set_environment()
917 if (nxt_slow_path(env == NULL)) { in nxt_app_set_environment()
921 p = nxt_cpymem(env, name.start, name.length); in nxt_app_set_environment()
926 if (nxt_slow_path(putenv(env) != 0)) { in nxt_app_set_environment()
H A Dnxt_java.c420 if ((*env)->ExceptionCheck(env)) { in nxt_java_start()
422 (*env)->ExceptionDescribe(env); in nxt_java_start()
453 if ((*env)->ExceptionCheck(env)) { in nxt_java_start()
454 (*env)->ExceptionDescribe(env); in nxt_java_start()
467 if ((*env)->ExceptionCheck(env)) { in nxt_java_start()
468 (*env)->ExceptionDescribe(env); in nxt_java_start()
525 if ((*env)->ExceptionCheck(env)) { in nxt_java_request_handler()
526 (*env)->ExceptionDescribe(env); in nxt_java_request_handler()
527 (*env)->ExceptionClear(env); in nxt_java_request_handler()
552 (*env)->DeleteLocalRef(env, jresp); in nxt_java_request_handler()
[all …]
/unit/src/ruby/
H A Dnxt_ruby.c287 ruby_ctx.env = Qnil; in nxt_ruby_start()
585 rctx->env = hash_env; in nxt_ruby_rack_env_create()
587 rb_gc_register_address(&rctx->env); in nxt_ruby_rack_env_create()
669 VALUE env, result; in nxt_ruby_rack_app_run() local
678 env = rb_hash_dup(rctx->env); in nxt_ruby_rack_app_run()
680 rc = nxt_ruby_read_request(req, env); in nxt_ruby_rack_app_run()
722 rb_hash_delete(env, rb_obj_id(env)); in nxt_ruby_rack_app_run()
728 rb_hash_delete(env, rb_obj_id(env)); in nxt_ruby_rack_app_run()
1233 if (rctx->env != Qnil) { in nxt_ruby_ctx_done()
1234 rb_gc_unregister_address(&rctx->env); in nxt_ruby_ctx_done()
[all …]
H A Dnxt_ruby.h24 VALUE env; member
/unit/src/nodejs/unit-http/
H A Dunit.cpp151 nxt_napi(env), in Unit()
170 nxt_napi napi(env); in init()
216 nxt_napi napi(env); in create()
226 new Unit(env, jsthis); in create()
251 nxt_napi napi(env); in create_server()
320 nxt_handle_scope scope(env()); in request_handler()
364 nxt_handle_scope scope(env()); in websocket_handler()
407 nxt_handle_scope scope(env()); in close_handler()
453 nxt_handle_scope scope(env()); in shm_ack_handler()
551 nxt_handle_scope scope(env()); in quit()
[all …]
H A Dunit.h14 static napi_value init(napi_env env, napi_value exports);
17 Unit(napi_env env, napi_value jsthis);
20 static napi_value create(napi_env env, napi_callback_info info);
21 static void destroy(napi_env env, void *nativeObject, void *finalize_hint);
27 static napi_value create_server(napi_env env, napi_callback_info info);
28 static napi_value listen(napi_env env, napi_callback_info info);
29 static napi_value _read(napi_env env, napi_callback_info info);
64 static napi_value request_read(napi_env env, napi_callback_info info);
66 static napi_value response_send_headers(napi_env env,
70 static napi_value response_end(napi_env env, napi_callback_info info);
[all …]
/unit/src/java/
H A Dnxt_jni_Request.c97 (*env)->DeleteLocalRef(env, cls); in nxt_java_initRequest()
102 (*env)->DeleteGlobalRef(env, cls); in nxt_java_initRequest()
108 (*env)->DeleteGlobalRef(env, cls); in nxt_java_initRequest()
114 (*env)->DeleteGlobalRef(env, cls); in nxt_java_initRequest()
258 (*env)->DeleteGlobalRef(env, cls); in nxt_java_initRequest()
402 return (*env)->NewStringUTF(env, query); in nxt_java_Request_getQueryString()
424 return (*env)->NewStringUTF(env, target); in nxt_java_Request_getRequestURI()
713 (*env)->ReleaseStringUTFChars(env, msg, msg_str); in nxt_java_Request_log()
734 (*env)->ReleaseStringUTFChars(env, msg, msg_str); in nxt_java_Request_trace()
804 (*env)->DeleteGlobalRef(env, data->jresp); in nxt_java_Request_closeWs()
[all …]
/unit/test/unit/applications/lang/
H A Dgo.py27 env = os.environ.copy()
28 env['GOPATH'] = option.current_dir + '/build/go'
29 env['GOCACHE'] = cache_dir
67 print("\n$ GOPATH=" + env['GOPATH'] + " " + " ".join(args))
70 process = subprocess.run(args, env=env, cwd=temp_dir)
/unit/test/python/forwarded_header/
H A Dwsgi.py1 def application(env, start_response): argument
6 ('Remote-Addr', env.get('REMOTE_ADDR')),
7 ('Url-Scheme', env.get('wsgi.url_scheme')),
/unit/pkg/deb/debian.module/
H A Drules-noarch.in18 config.env.%:
34 configure.unit: config.env.unit
43 configure.unit_debug: config.env.unit_debug
H A Drules.in18 config.env.%:
34 configure.unit: config.env.unit
43 configure.unit_debug: config.env.unit_debug
/unit/pkg/deb/debian/
H A Drules.in23 config.env.%:
41 configure.unit: config.env.unit
51 configure.unit_debug: config.env.unit_debug
/unit/test/ruby/input_gets/
H A Dconfig.ru1 app = Proc.new do |env|
2 body = env['rack.input'].gets
3 env['rack.input'].close
/unit/test/ruby/errors_write/
H A Dconfig.ru1 app = Proc.new do |env|
2 env['rack.errors'].write('Error in application')
3 env['rack.errors'].flush
4 env['rack.errors'].close
/unit/test/ruby/variables/
H A Dconfig.ru1 app = Proc.new do |env|
2 body = env['rack.input'].read
3 version = env['rack.version'].join('')
6 'Content-Type' => env['CONTENT_TYPE'],
8 'Request-Method' => env['REQUEST_METHOD'],
9 'Request-Uri' => env['REQUEST_URI'],
10 'Http-Host' => env['HTTP_HOST'],
11 'Script-Name' => env['SCRIPT_NAME'],
12 'Server-Protocol' => env['SERVER_PROTOCOL'],
13 'Server-Software' => env['SERVER_SOFTWARE'],
[all …]
/unit/auto/modules/
H A Dgo74 NXT_GO_PATH=${NXT_GO_PATH=`${NXT_GO} env GOPATH`}
104 GOOS = `${NXT_GO} env GOOS`
105 GOARCH = `${NXT_GO} env GOARCH`
113 ${NXT_GO}-install: ${NXT_GO}-install-src ${NXT_GO}-install-env
121 ${NXT_GO}-install-env: \$(DESTDIR)\$(NXT_GO_DST)/src/${NXT_GO_PKG}/env.go \
124 \$(DESTDIR)\$(NXT_GO_DST)/src/${NXT_GO_PKG}/env.go:
/unit/test/python/client_ip/
H A Dwsgi.py1 def application(env, start_response): argument
2 ip = env['REMOTE_ADDR'].encode()
/unit/test/ruby/hooks/
H A Dconfig.ru1 app = Proc.new do |env|
/unit/test/python/body_generate/
H A Dwsgi.py1 def application(env, start_response): argument
2 length = env.get('HTTP_X_LENGTH', '10')
/unit/test/python/targets/
H A Dwsgi.py1 def wsgi_target_a(env, start_response): argument
6 def wsgi_target_b(env, start_response): argument
/unit/test/python/host/
H A Dwsgi.py1 def application(env, start_response): argument
6 ('X-Server-Name', env.get('SERVER_NAME')),
7 ('X-Http-Host', str(env.get('HTTP_HOST'))),
/unit/test/python/environment/
H A Dwsgi.py4 def application(env, start_response): argument
6 vars = env.get('HTTP_X_VARIABLES').split(',')

1234