Home
last modified time | relevance | path

Searched refs:environ (Results 1 – 25 of 64) sorted by relevance

123

/unit/test/perl/variables/
H A Dpsgi.pl2 my ($environ) = @_;
4 my $len = int($environ->{'CONTENT_LENGTH'});
5 $environ->{'psgi.input'}->read(my $body, $len);
7 my $version = join('', @{$environ->{'psgi.version'}});
10 'Content-Type' => $environ->{'CONTENT_TYPE'},
12 'Request-Method' => $environ->{'REQUEST_METHOD'},
13 'Request-Uri' => $environ->{'REQUEST_URI'},
14 'Http-Host' => $environ->{'HTTP_HOST'},
15 'Server-Protocol' => $environ->{'SERVER_PROTOCOL'},
22 'Psgi-Run-Once' => $environ->{'psgi.run_once'},
[all …]
/unit/test/python/variables/
H A Dwsgi.py1 def application(environ, start_response): argument
3 content_length = int(environ.get('CONTENT_LENGTH', 0))
4 body = bytes(environ['wsgi.input'].read(content_length))
9 ('Content-Type', environ.get('CONTENT_TYPE')),
11 ('Request-Method', environ.get('REQUEST_METHOD')),
12 ('Request-Uri', environ.get('REQUEST_URI')),
13 ('Http-Host', environ.get('HTTP_HOST')),
14 ('Server-Protocol', environ.get('SERVER_PROTOCOL')),
17 ('Wsgi-Version', str(environ['wsgi.version'])),
18 ('Wsgi-Url-Scheme', environ['wsgi.url_scheme']),
[all …]
/unit/test/python/upload/
H A Dwsgi.py5 def read(environ): argument
6 length = int(environ.get('CONTENT_LENGTH', 0))
9 body.write(bytes(environ['wsgi.input'].read(length)))
12 environ['wsgi.input'] = body
16 def application(environ, start_response): argument
17 file = read(environ)
19 form = cgi.FieldStorage(fp=file, environ=environ, keep_blank_values=True)
/unit/test/python/ctx_iter_atexit/
H A Dwsgi.py5 def __init__(self, environ, start_response): argument
6 self.environ = environ
12 content_length = int(self.environ.get('CONTENT_LENGTH', 0))
13 body = bytes(self.environ['wsgi.input'].read(content_length))
18 ('Content-Type', self.environ.get('CONTENT_TYPE')),
/unit/test/python/log_body/
H A Dwsgi.py1 def application(environ, start_response): argument
2 content_length = int(environ.get('CONTENT_LENGTH', 0))
3 body = bytes(environ['wsgi.input'].read(content_length))
5 environ['wsgi.errors'].write(body.decode())
6 environ['wsgi.errors'].flush()
/unit/test/python/close/
H A Dwsgi.py2 def __init__(self, environ, start_response): argument
3 self.environ = environ
11 self.environ['wsgi.errors'].write('Close called.\n')
12 self.environ['wsgi.errors'].flush()
/unit/test/python/close_error/
H A Dwsgi.py2 def __init__(self, environ, start_response): argument
3 self.environ = environ
11 self.environ['wsgi.errors'].write('Close called.\n')
12 self.environ['wsgi.errors'].flush()
/unit/test/perl/threads/
H A Dpsgi.pl2 my ($environ) = @_;
4 sleep int($environ->{'HTTP_X_DELAY'});
8 'Psgi-Multithread' => $environ->{'psgi.multithread'},
9 'X-Thread' => $environ->{'psgi.input'}
/unit/test/perl/input_buffered_read/
H A Dpsgi.pl4 my ($environ) = @_;
6 $environ->{'psgi.input'}->read(my $body, 1024);
13 $environ->{'psgix.input.buffered'} = 1;
14 $environ->{'psgi.input'} = $io;
/unit/test/python/iter_exception/
H A Dwsgi.py2 def __init__(self, environ, start_response): argument
3 self.environ = environ
10 self._skip_level = int(self.environ.get('HTTP_X_SKIP', 0))
12 self.environ.get('HTTP_X_NOT_SKIP_CLOSE', 0)
14 self._is_chunked = self.environ.get('HTTP_X_CHUNKED')
/unit/test/perl/input_read_parts/
H A Dpsgi.pl2 my ($environ) = @_;
4 $len_1 = $environ->{'psgi.input'}->read(my $body_1, 4);
5 $len_2 = $environ->{'psgi.input'}->read(my $body_2, 4);
6 $len_3 = $environ->{'psgi.input'}->read(my $body_3, 2);
/unit/test/python/delayed/
H A Dwsgi.py4 def application(environ, start_response): argument
5 parts = int(environ.get('HTTP_X_PARTS', 1))
6 delay = int(environ.get('HTTP_X_DELAY', 0))
8 content_length = int(environ.get('CONTENT_LENGTH', 0))
9 body = bytes(environ['wsgi.input'].read(content_length))
/unit/test/python/errors_write/
H A Dwsgi.py1 def application(environ, start_response): argument
2 environ['wsgi.errors'].write('Error in application.')
3 environ['wsgi.errors'].flush()
/unit/test/perl/input_close/
H A Dpsgi.pl2 my ($environ) = @_;
4 $environ->{'psgi.input'}->read(my $body, 1024);
5 $environ->{'psgi.input'}->close();
/unit/test/perl/input_copy/
H A Dpsgi.pl2 my ($environ) = @_;
4 open(my $fh, ">&", $environ->{'psgi.input'});
6 my $len = int($environ->{'CONTENT_LENGTH'});
/unit/test/python/atexit/
H A Dwsgi.py4 def application(environ, start_response): argument
6 environ['wsgi.errors'].write('At exit called.\n')
7 environ['wsgi.errors'].flush()
/unit/test/python/not_iterable/
H A Dwsgi.py2 def __init__(self, environ, start_response): argument
3 self.environ = environ
/unit/test/python/input_read_length/
H A Dwsgi.py1 def application(environ, start_response): argument
3 input_length = int(environ.get('HTTP_INPUT_LENGTH'))
4 body = bytes(environ['wsgi.input'].read(input_length))
/unit/test/python/mirror/
H A Dwsgi.py1 def application(environ, start_response): argument
3 content_length = int(environ.get('CONTENT_LENGTH', 0))
4 body = bytes(environ['wsgi.input'].read(content_length))
/unit/test/python/threads/
H A Dwsgi.py5 def application(environ, start_response): argument
6 delay = float(environ.get('HTTP_X_DELAY', 0))
14 ('Wsgi-Multithread', str(environ['wsgi.multithread'])),
/unit/src/python/
H A Dnxt_python_wsgi.c225 pctx->environ = NULL; in nxt_python_wsgi_ctx_data_alloc()
338 Py_DECREF(environ); in nxt_python_request_handler()
460 environ = PyDict_New(); in nxt_python_create_environ()
554 return environ; in nxt_python_create_environ()
559 Py_DECREF(environ); in nxt_python_create_environ()
568 PyObject *environ; in nxt_python_copy_environ() local
578 return environ; in nxt_python_copy_environ()
677 environ = pctx->environ; in nxt_python_get_environ()
678 pctx->environ = NULL; in nxt_python_get_environ()
680 return environ; in nxt_python_get_environ()
[all …]
/unit/test/perl/query_string/
H A Dpsgi.pl2 my ($environ) = @_;
6 'Query-String' => $environ->{'QUERY_STRING'}
/unit/test/perl/server_port/
H A Dpsgi.pl2 my ($environ) = @_;
6 'Server-Port' => $environ->{'SERVER_PORT'}
/unit/test/perl/errors_print/
H A Dpsgi.pl2 my ($environ) = @_;
4 my $result = $environ->{'psgi.errors'}->print('Error in application');
/unit/test/perl/input_read_offset/
H A Dpsgi.pl2 my ($environ) = @_;
4 $environ->{'psgi.input'}->read(my $body, 4, 4);

123