/unit/docs/ |
H A D | unit-openapi.yaml | 3030 Unit's [request body read timeout] 3433 Unit's [request body size limit] 6158 description: "Maximum number of seconds to read data from the body of 6191 description: "Maximum number of bytes in the body of a
|
/unit/ |
H A D | CHANGES | 253 *) Bugfix: some Perl applications failed to process the request body, 665 *) Bugfix: receiving request body over TLS connection might have 753 *) Feature: support for multipart requests body in Java module. 813 body. 847 application tried to read request body after request.end() was 947 *) Feature: configuration of the request body size limit. 957 *) Bugfix: requests with body data might be handled incorrectly in PHP 988 produce EOF when the whole body was read. 1011 header or body. 1054 *) Bugfix: in reading client request body; the bug had appeared in 0.3. [all …]
|
/unit/test/ |
H A D | test_asgi_application.py | 216 resp = client.post(body=body, read_buffer_size=1024 * 1024) 224 body = '0123456789' 226 assert client.post(body=body)['body'] == body 241 body=body, 247 body = '0123456789' 248 resp = client.post(sock=sock, body=body) 269 body=body, 287 body=body, 296 resp = client.post(sock=socks[i], body=body) 316 body=body, [all …]
|
H A D | test_node_application.py | 53 body = 'Test body string.' 62 body=body, 84 'Content-Length': str(len(body)), 92 assert resp['body'] == body, 'body' 113 body='var1=val1&var2=&var3', 135 body = '0123456789' * 500 142 body=body, 148 body = '0123456789' 149 resp = client.post(sock=sock, body=body) 271 body='callback', [all …]
|
H A D | test_access_log.py | 46 body='01234', 54 _ = client.post(sock=sock, body='0123456789') 308 body = '0123456789' * 50 309 client.post(url='/bbs', body=body, read_timeout=1)
|
H A D | test_ruby_application.py | 16 body = 'Test body string.' 25 body=body, 138 body = '0123456789' 140 assert client.post(body=body)['body'] == body, 'input gets' 156 assert client.post(body=body)['body'] == body, 'input gets all' 164 assert client.post(body=body)['body'] == body, 'input each' 370 assert client.post(body=body)['body'] == body, 'body large' 395 body = '0123456789' * 500 402 body=body, 408 body = '0123456789' [all …]
|
H A D | test_usr1.py | 60 body = 'body_for_a_log_new\n' 61 assert client.post(body=body)['status'] == 200 63 assert wait_for_record(body, log_new) is not None, 'rename new' 70 body = 'body_for_a_log_unit\n' 71 assert client.post(body=body)['status'] == 200 73 assert wait_for_record(body) is not None, 'rename new' 74 assert search_in_file(body, log_new) is None, 'rename new 2'
|
H A D | test_upstreams_rr.py | 401 resps[client.post(body='0123456789')['status'] % 10] += 1
|
H A D | test_tls.py | 520 body='0123456789', 532 body='0123456789', 620 body='0123456789', 632 resp = client.post_ssl(sock=sock, body='0123456789') 681 body={
|
H A D | test_static_types.py | 34 def check_body(http_url, body): argument 37 assert resp['body'] == body, 'body'
|
H A D | test_settings.py | 371 resp = client.post(body=body, read_buffer_size=1024 * 1024) 376 resp = client.post(body=body, read_buffer_size=1024 * 1024) 381 resp = client.post(body=body, read_buffer_size=1024 * 1024) 386 resp = client.post(body=body, read_buffer_size=1024 * 1024) 411 body = '0123456789abcdef' 412 resp = client.post(body=body) 415 assert resp['body'] == body, 'body' 418 resp = client.post(body=body, read_buffer_size=1024 * 1024) 421 assert resp['body'] == body, 'body 2' 424 resp = client.post(body=body, read_buffer_size=1024 * 1024) [all …]
|
H A D | test_return.py | 47 resp = client.post(body='blah')
|
H A D | test_php_application.py | 20 body = client.get()['body'] 114 body = 'Test body string.' 123 body=body, 310 body = '0123456789' * 500 317 body=body, 323 body = '0123456789' 324 resp = client.post(sock=sock, body=body) 355 body='var1=val1&var2=', 495 body = client.get()['body'] 511 body = client.get()['body'] [all …]
|
H A D | test_proxy_chunked.py | 70 body = m.group(1) 72 for line in re.split('\r\n', body): 95 body = '\r\n\r\n' 98 body = f'{body}{l}\r\n{c}\r\n' 125 body=chunks([('1000000', f'{part} X 1048576')]), 139 body=chunks( 150 body=chunks( 188 def check_invalid(body): argument 189 assert get_http10(body=body)['status'] != 200 200 resp = get_http10(body='\r\n\r\n65#\r\nA X 100') [all …]
|
H A D | test_perl_application.py | 15 body = 'Test body string.' 24 body=body, 56 assert resp['body'] == body, 'body' 138 body = '0123456789' 139 assert client.post(body=body)['body'] == body, 'input copy' 182 body = '0123456789' * 1000 184 resp = client.post(body=body)['body'] 220 body = '0123456789' * 500 228 body=body, 234 body = '0123456789' [all …]
|
H A D | test_python_application.py | 212 body=body, 240 body=body, 258 body=body, 287 body=body, 366 resp = client.post(body=body) 379 resp = client.post(body=body) 406 resp = client.post(body=body) 439 body=body, 450 body=body, 461 body=body, [all …]
|
/unit/test/python/body_bytearray/ |
H A D | asgi.py | 4 body = b'' 7 body += m.get('body', b'') 9 body = bytearray(body) 16 'headers': [(b'content-length', str(len(body)).encode())], 20 await send({'type': 'http.response.body', 'body': body})
|
/unit/src/wasm-wasi-component/src/ |
H A D | lib.rs | 273 let body = self.to_request_body(&mut info); in handle() 274 let request = request.body(body)?; in handle() 316 let body = self.send_response(&mut info, response); in handle() 320 self.send_response_body(&mut info, body) in handle() 375 let mut body = in to_request_body() variables 380 info.request_read(&mut body); in to_request_body() 382 Full::new(body.freeze()).map_err(|e| match e {}).boxed() in to_request_body() 412 mut body: BoxBody<Bytes, ErrorCode>, in send_response_body() 418 let frame = match body.frame().await { in send_response_body()
|
/unit/src/python/ |
H A D | nxt_python_asgi_http.c | 167 PyObject *msg, *body; in nxt_py_asgi_http_read_msg() local 202 body = NULL; in nxt_py_asgi_http_read_msg() 209 Py_XDECREF(body); in nxt_py_asgi_http_read_msg() 225 if (body != NULL) { in nxt_py_asgi_http_read_msg() 226 SET_ITEM(msg, body, body) in nxt_py_asgi_http_read_msg() 235 Py_XDECREF(body); in nxt_py_asgi_http_read_msg() 240 Py_XDECREF(body); in nxt_py_asgi_http_read_msg() 247 Py_XDECREF(body); in nxt_py_asgi_http_read_msg() 382 if (body != NULL) { in nxt_py_asgi_http_response_body() 383 if (PyBytes_Check(body)) { in nxt_py_asgi_http_response_body() [all …]
|
/unit/src/ |
H A D | nxt_router.c | 5239 nxt_buf_t *buf, *body; in nxt_router_app_prepare_request() local 5279 body = req_rpc_data->request->body; in nxt_router_app_prepare_request() 5281 if (body != NULL && nxt_buf_is_file(body)) { in nxt_router_app_prepare_request() 5282 req_rpc_data->msg_info.body_fd = body->file->fd; in nxt_router_app_prepare_request() 5284 body->file->fd = -1; in nxt_router_app_prepare_request() 5613 for (b = r->body; b != NULL; b = b->next) { in nxt_router_prepare_msg()
|
H A D | nxt_http_request.c | 849 if (r->body != NULL && nxt_buf_is_file(r->body) in nxt_http_request_close_handler() 850 && r->body->file->fd != -1) in nxt_http_request_close_handler() 852 nxt_fd_close(r->body->file->fd); in nxt_http_request_close_handler() 854 r->body->file->fd = -1; in nxt_http_request_close_handler()
|
/unit/src/wasm-wasi-component/ |
H A D | Cargo.lock | 645 name = "http-body" 655 name = "http-body-util" 663 "http-body", 690 "http-body", 1627 "http-body", 1628 "http-body-util", 1941 "http-body", 1942 "http-body-util",
|
H A D | Cargo.toml | 15 http-body = { version = "1.0.0", default-features = false } 16 http-body-util = "0.1.0"
|
/unit/test/unit/ |
H A D | http.py | 25 body = kwargs.get('body', b'') 62 if body != b'': 64 body = body.encode() 66 body, content_type = self.form_encode(body) 258 body = b'' 272 body += temp_body[:size] 278 return body 307 return body, content_type 318 body = '' 342 body += ( [all …]
|
/unit/test/unit/check/ |
H A D | isolation.py | 136 body=json.dumps(conf),
|