Home
last modified time | relevance | path

Searched refs:resp (Results 1 – 25 of 54) sorted by relevance

123

/unit/test/
H A Dtest_http_header.py11 resp = self.get(
27 resp = self.get(
43 resp = self.get(
59 resp = self.get(
75 resp = self.get(
91 resp = self.get(
107 resp = self.get(
124 resp = self.http(
141 resp = self.http(
313 resp = self.get(
[all …]
H A Dtest_return.py35 resp = self.get()
36 assert resp['status'] == 200
47 resp = self.get_resps_sc()
63 resp = self.get()
65 assert resp['body'] == ''
69 resp = self.get()
71 assert resp['body'] != ''
75 resp = self.get()
77 assert resp['body'] != ''
81 resp = self.get()
[all …]
H A Dtest_php_application.py24 resp = self.get()
31 return resp
66 resp = self.post(
161 resp = self.get()
169 resp = self.get()
213 resp = self.get()
261 resp = self.post(
276 resp = self.get(
428 resp = self.get(
440 resp = self.get(
[all …]
H A Dtest_static_fallback.py46 resp = self.get()
54 resp = self.get()
58 resp = self.get(url='/403/')
60 assert resp['body'] == '', 'fallback 403'
62 resp = self.post()
64 assert resp['body'] == '', 'fallback 405'
79 resp = self.get()
81 assert resp['body'] == '', 'fallback nested'
91 resp = self.get()
95 resp = self.head()
[all …]
H A Dtest_asgi_application.py22 resp = self.http(
38 headers = resp['headers']
108 resp = self.get(url='/?')
116 resp = self.get()
173 (resp, sock) = self.post(
246 (resp, sock) = self.post(
293 resp = self.http(
378 self.log_in(resp)
380 resp = self._resp_to_dict(resp)
393 resp = self.get(
[all …]
H A Dtest_go_application.py19 resp = self.post(
29 assert resp['status'] == 200, 'status'
30 headers = resp['headers']
52 assert resp['body'] == body, 'body'
65 resp = self.post(
81 resp = self.get()
83 assert resp['status'] == 404, '404 status'
94 (resp, sock) = self.post(
104 assert resp['body'] == body, 'keep-alive 1'
107 resp = self.post(sock=sock, body=body)
[all …]
H A Dtest_python_application.py19 resp = self.http(
108 resp = self.get()
374 resp = self.post(
385 resp = self.post(
396 resp = self.post(
510 resp = self.get(
573 resp = self.get(
582 if resp:
607 resp = self.get(
616 if resp:
[all …]
H A Dtest_perl_application.py15 resp = self.post(
25 assert resp['status'] == 200, 'status'
26 headers = resp['headers']
70 resp = self.get(url='/?')
78 resp = self.get()
195 (resp, sock) = self.post(
209 resp = self.post(
239 resp = self.get()
247 resp = self.get()
278 self.log_in(resp)
[all …]
H A Dtest_settings.py17 (resp, sock) = self.http(
72 (resp, sock) = self.http(
81 if len(resp) != 0:
87 resp = self.http(
101 (resp, sock) = self.http(
135 (resp, sock) = self.http(
149 (resp, sock) = self.http(
155 (resp, sock) = self.http(
224 (resp, sock) = self.get(
317 resp = self.post(body=body)
[all …]
H A Dtest_node_application.py12 resp = self.get()
42 resp = self.post(
52 assert resp['status'] == 200, 'status'
53 headers = resp['headers']
81 assert resp['body'] == body, 'body'
94 resp = self.post(
110 resp = self.get()
112 assert resp['status'] == 404, '404 status'
123 (resp, sock) = self.post(
136 resp = self.post(sock=sock, body=body)
[all …]
H A Dtest_proxy.py179 assert resp['status'] == 200, 'status'
180 assert resp['body'] == payload, 'body'
199 resp = self._resp_to_dict(resp)
298 assert resp['status'] == 200, 'status'
361 resp = self.post_http10(
371 assert resp['status'] == 200, 'status'
372 assert resp['body'] == body, 'body'
374 resp = self.post_http10(
384 assert resp['status'] == 200, 'status'
385 assert resp['body'] == body, 'body'
[all …]
H A Dtest_java_application.py131 resp = self.get(
154 resp = self.get(
168 resp = self.get(
180 resp = self.get(
193 resp = self.get(
204 resp = self.get(
217 resp = self.get()
220 resp = self.get(
559 resp = self.get(
841 resp = self.post(
[all …]
H A Dtest_ruby_application.py16 resp = self.post(
26 assert resp['status'] == 200, 'status'
27 headers = resp['headers']
73 resp = self.get(url='/?')
81 resp = self.get()
258 resp = self.get()
346 (resp, sock) = self.post(
366 resp = self.get()
370 headers = resp['headers']
407 self.log_in(resp)
[all …]
H A Dtest_python_targets.py43 resp = self.get(url='/1')
44 assert resp['status'] == 200
45 assert resp['body'] == '1'
47 resp = self.get(url='/2')
48 assert resp['status'] == 200
49 assert resp['body'] == '2'
H A Dtest_static_mount.py65 resp = self.get(url='/mount/')
66 assert resp['status'] == 200
67 assert resp['body'] == 'mount'
81 resp = self.get(url='/mount/')
82 assert resp['status'] == 200
83 assert resp['body'] == 'mount'
H A Dtest_static.py69 resp = self.get(url='/index.html/')
70 assert resp['status'] == 404, 'index not found 2 status'
72 resp['headers']['Content-Type'] == 'text/html'
111 resp = self.get(url='/dir')
112 assert resp['status'] == 301, 'redirect status'
113 assert resp['headers']['Location'] == '/dir/', 'redirect Location'
114 assert 'Content-Type' not in resp['headers'], 'redirect Content-Type'
201 resp = self.head()
202 assert resp['status'] == 200, 'HEAD status'
203 assert resp['body'] == '', 'HEAD empty body'
H A Dtest_tls.py337 resp = self.get_ssl()
339 resp = None
504 (resp, sock) = self.post_ssl(
514 assert resp['body'] == '0123456789', 'keepalive 1'
516 resp = self.post_ssl(
525 assert resp['body'] == '0123456789', 'keepalive 2'
543 (resp, sock) = self.get_ssl(start=True)
559 (resp, sock) = self.get_ssl(
571 resp = self.get_ssl(sock=sock)
577 resp = None
[all …]
H A Dtest_forwarded_header.py55 resp = self.get_fwd(xff='1.1.1.1', xfp='https')
56 assert resp['Remote-Addr'] == '127.0.0.1', 'both headers addr'
57 assert resp['Url-Scheme'] == 'http', 'both headers proto'
79 resp = self.get_fwd(xff='1.1.1.1', xfp='https')
80 assert resp['Remote-Addr'] == '1.1.1.1', 'both headers addr 2'
81 assert resp['Url-Scheme'] == 'https', 'both headers proto 2'
H A Dtest_node_es_modules.py17 resp = self.get()
18 assert resp['headers']['Content-Type'] == 'text/plain', 'basic header'
19 assert resp['body'] == 'Hello World\n', 'basic body'
H A Dtest_proxy_chunked.py203 resp = self.get_http10(body='\r\n\r\n65#\r\nA X 100')
204 assert resp['status'] == 200, 'incomplete chunk status'
205 assert resp['body'][-5:] != '0\r\n\r\n', 'incomplete chunk'
207 resp = self.get_http10(body='\r\n\r\n64#\r\nA X 100')
208 assert resp['status'] == 200, 'no zero chunk status'
209 assert resp['body'][-5:] != '0\r\n\r\n', 'no zero chunk'
/unit/src/
H A Dnxt_controller.c1175 resp.offset = -1; in nxt_controller_process_request()
1184 resp.offset = -1; in nxt_controller_process_request()
1193 resp.offset = -1; in nxt_controller_process_request()
1287 &resp.line, &resp.column); in nxt_controller_process_config()
1447 resp.offset = -1; in nxt_controller_process_config()
1456 resp.offset = -1; in nxt_controller_process_config()
1465 resp.offset = -1; in nxt_controller_process_config()
1474 resp.offset = -1; in nxt_controller_process_config()
1550 resp.offset = -1; in nxt_controller_process_status()
2181 + (resp->status >= 400 && resp->offset != -1); in nxt_controller_response()
[all …]
H A Dnxt_http_error.c43 r->resp.fields = nxt_list_create(r->mem_pool, 8, sizeof(nxt_http_field_t)); in nxt_http_request_error()
44 if (nxt_slow_path(r->resp.fields == NULL)) { in nxt_http_request_error()
48 content_type = nxt_list_zero_add(r->resp.fields); in nxt_http_request_error()
55 r->resp.content_length = NULL; in nxt_http_request_error()
56 r->resp.content_length_n = NXT_HTTP_ERROR_LEN; in nxt_http_request_error()
/unit/test/unit/
H A Dhttp.py94 resp = ''
112 self.log_in(resp)
115 resp = self._resp_to_dict(resp)
119 resp['body'] = self._parse_chunked_body(resp['body']).decode(
124 resp = self._parse_json(resp)
128 return resp
130 return (resp, sock)
282 def _parse_json(self, resp): argument
283 headers = resp['headers']
288 resp['body'] = json.loads(resp['body'])
[all …]
/unit/test/unit/check/
H A Dunix_abstract.py12 resp = http.put(
24 if 'success' in resp['body']:
/unit/src/java/
H A Dnxt_jni_Response.c394 resp = req->response; in nxt_java_add_int_header()
396 f = resp->fields + resp->fields_count; in nxt_java_add_int_header()
411 resp->fields_count++; in nxt_java_add_int_header()
447 resp = req->response; in nxt_java_Response_containsHeader()
450 resp->fields + resp->fields_count, in nxt_java_Response_containsHeader()
547 resp = req->response; in nxt_java_Response_getHeaders()
557 f = nxt_java_findHeader(resp->fields, resp->fields + resp->fields_count, in nxt_java_Response_getHeaders()
563 f = resp->fields + resp->fields_count; in nxt_java_Response_getHeaders()
566 return nxt_java_newHeadersEnumeration(env, resp->fields, resp->fields_count, in nxt_java_Response_getHeaders()
681 f = resp->fields; in nxt_java_response_set_header()
[all …]

123