Home
last modified time | relevance | path

Searched refs:body (Results 1 – 25 of 78) sorted by relevance

1234

/unit/test/
H A Dtest_proxy_chunked.py53 body = m.group(1)
55 for line in re.split('\r\n', body):
77 body = '\r\n\r\n'
80 body = body + l + '\r\n' + c + '\r\n'
82 return body + '0\r\n\r\n'
135 body=self.chunks(
143 body=self.chunks(
154 body=self.chunks(
191 def check_invalid(body): argument
192 assert self.get_http10(body=body)['status'] != 200
[all …]
H A Dtest_ruby_application.py14 body = 'Test body string.'
23 body=body,
128 body = '0123456789'
130 assert self.post(body=body)['body'] == body, 'input gets'
144 assert self.post(body=body)['body'] == body, 'input gets all'
151 assert self.post(body=body)['body'] == body, 'input each'
157 body = '0123456789'
159 assert self.post(body=body)['body'] == body, 'input rewind'
322 assert self.post(body=body)['body'] == body, 'body large'
352 body=body,
[all …]
H A Dtest_python_application.py30 % (len(body), body.encode()),
164 body=body,
191 body=body,
209 body=body,
237 body=body,
312 resp = self.post(body=body)
324 resp = self.post(body=body)
380 body=body,
391 body=body,
402 body=body,
[all …]
H A Dtest_perl_application.py13 body = 'Test body string.'
22 body=body,
56 assert resp['body'] == body, 'body'
128 body = '0123456789'
129 assert self.post(body=body)['body'] == body, 'input copy'
166 body = '0123456789' * 1000
168 resp = self.post(body=body)['body']
194 body = '0123456789' * 500
202 body=body,
208 body = '0123456789'
[all …]
H A Dtest_settings.py280 resp = self.post(body=body, read_buffer_size=1024 * 1024)
285 resp = self.post(body=body, read_buffer_size=1024 * 1024)
290 resp = self.post(body=body, read_buffer_size=1024 * 1024)
295 resp = self.post(body=body, read_buffer_size=1024 * 1024)
318 body = '0123456789abcdef'
319 resp = self.post(body=body)
322 assert resp['body'] == body, 'body'
325 resp = self.post(body=body, read_buffer_size=1024 * 1024)
328 assert resp['body'] == body, 'body 2'
331 resp = self.post(body=body, read_buffer_size=1024 * 1024)
[all …]
H A Dtest_asgi_application.py33 % (len(body), body.encode()),
163 resp = self.post(body=body, read_buffer_size=1024 * 1024)
179 body=body,
185 body = '0123456789'
186 resp = self.post(sock=sock, body=body)
195 body = '0123456789'
206 body=body,
224 body=body,
233 resp = self.post(sock=socks[i], body=body)
252 body=body,
[all …]
H A Dtest_go_application.py17 body = 'Test body string.'
26 body=body,
41 'Content-Length': str(len(body)),
52 assert resp['body'] == body, 'body'
71 body='var1=val1&var2=&var3',
93 body = '0123456789' * 500
100 body=body,
104 assert resp['body'] == body, 'keep-alive 1'
106 body = '0123456789'
107 resp = self.post(sock=sock, body=body)
[all …]
H A Dtest_node_application.py40 body = 'Test body string.'
49 body=body,
73 'Content-Length': str(len(body)),
81 assert resp['body'] == body, 'body'
100 body='var1=val1&var2=&var3',
122 body = '0123456789' * 500
129 body=body,
135 body = '0123456789'
136 resp = self.post(sock=sock, body=body)
239 body='callback',
[all …]
H A Dtest_usr1.py59 body = 'body_for_a_log_new\n'
60 assert self.post(body=body)['status'] == 200
62 assert self.wait_for_record(body, log_new) is not None, 'rename new'
69 body = 'body_for_a_log_unit\n'
70 assert self.post(body=body)['status'] == 200
72 assert self.wait_for_record(body) is not None, 'rename new'
73 assert self.search_in_log(body, log_new) is None, 'rename new 2'
H A Dtest_php_application.py17 body = self.get()['body']
63 body = 'Test body string.'
72 body=body,
224 body = '0123456789' * 500
231 body=body,
237 body = '0123456789'
238 resp = self.post(sock=sock, body=body)
415 r'exec: \/\w+', body
492 r'exec: \/\w+', body
509 r'exec: \/\w+', body
[all …]
/unit/test/python/environment/
H A Dwsgi.py5 body = ''
10 body += str(os.environ[var]) + ','
12 body = body.encode()
13 start_response('200', [('Content-Length', str(len(body)))])
14 return body
/unit/test/unit/
H A Dhttp.py24 body = kwargs.get('body', b'')
64 if body != b'':
65 if isinstance(body, str):
66 body = body.encode()
68 body, content_type = self.form_encode(body)
255 body = b''
269 body += temp_body[:size]
275 return body
304 return body, content_type
315 body = ''
[all …]
/unit/test/python/input_readline_size/
H A Dwsgi.py2 body = []
9 body.append(l)
12 body.append(b'len(l) > 9: ' + l)
15 start_response('200', [('X-Lines-Count', str(len(body)))])
16 return body
/unit/test/python/delayed/
H A Dwsgi.py9 body = bytes(environ['wsgi.input'].read(content_length))
11 write = start_response('200', [('Content-Length', str(len(body)))])
13 if not body:
17 step = int(len(body) / parts)
18 for i in range(0, len(body), step):
20 write(body[i : i + step])
H A Dasgi.py7 body = b''
10 body += m.get('body', b'')
36 'headers': [(b'content-length', str(len(body)).encode()),],
40 if not body:
44 step = int(len(body) / parts)
45 for i in range(0, len(body), step):
49 'body': body[i : i + step],
/unit/test/ruby/input_read_parts/
H A Dconfig.ru2 body = env['rack.input'].read(4)
3 body += env['rack.input'].read(4)
4 body += env['rack.input'].read(1)
6 'Content-Length' => body.length.to_s
7 }, [body]]
/unit/test/perl/input_buffered_read/
H A Dpsgi.pl6 $environ->{'psgi.input'}->read(my $body, 1024);
8 open my $io, "<", \$body;
16 return ['200', ['Content-Length' => length $body], [$body]];
/unit/test/ruby/input_read_buffer/
H A Dconfig.ru2 body = ''
3 env['rack.input'].read(nil, body)
5 'Content-Length' => body.length.to_s
6 }, [body]]
/unit/test/python/input_iter/
H A Dwsgi.py2 body = []
6 body.append(l)
13 ('X-Lines-Count', str(len(body))),
16 return body
/unit/test/node/mirror/
H A Dapp.js3 let body = '';
5 body += chunk.toString();
8 res.writeHead(200, {'Content-Length': Buffer.byteLength(body)})
9 .end(body);
/unit/test/python/upload/
H A Dwsgi.py8 body = TemporaryFile(mode='w+b')
9 body.write(bytes(environ['wsgi.input'].read(length)))
10 body.seek(0)
12 environ['wsgi.input'] = body
13 return body
/unit/test/ruby/input_read_buffer_not_empty/
H A Dconfig.ru2 body = 'blah'
3 env['rack.input'].read(nil, body)
5 'Content-Length' => body.length.to_s
6 }, [body]]
/unit/test/python/input_readline/
H A Dwsgi.py2 body = []
10 body.append(l)
17 ('X-Lines-Count', str(len(body))),
20 return body
/unit/test/ruby/empty/
H A Dconfig.ru2 body = env['rack.input'].gets
3 #body += env['rack.input'].gets
5 'Content-Length' => body.length.to_s
6 }, [body]]
/unit/test/ruby/input_each/
H A Dconfig.ru2 body = ''
4 body += value
7 'Content-Length' => body.length.to_s
8 }, [body]]

1234