Home
last modified time | relevance | path

Searched refs:resp (Results 1 – 25 of 53) 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_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']
106 resp = self.get()
153 resp = self.post(
185 resp = self.post(
242 resp = self.post(
321 resp = self.http(
407 self.log_in(resp)
409 resp = self._resp_to_dict(resp)
422 resp = self.get(
[all …]
H A Dtest_php_application.py23 resp = self.get()
30 return resp
65 resp = self.post(
160 resp = self.get()
168 resp = self.get()
212 resp = self.get()
239 resp = self.post(
284 resp = self.get(
436 resp = self.get(
448 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(
105 assert resp['body'] == body, 'keep-alive 1'
108 resp = self.post(
[all …]
H A Dtest_settings.py17 (resp, sock) = self.http(
53 (resp, sock) = self.http(
63 (resp, sock) = self.http(
74 (resp, sock) = self.http(
83 if len(resp) != 0:
89 resp = self.http(
103 (resp, sock) = self.http(
137 (resp, sock) = self.http(
151 (resp, sock) = self.http(
157 (resp, sock) = self.http(
[all …]
H A Dtest_python_application.py19 resp = self.http(
108 resp = self.get()
141 resp = self.post(
179 resp = self.post(
410 resp = self.post(
546 resp = self.get(
609 resp = self.get(
618 if resp:
643 resp = self.get(
652 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()
279 self.log_in(resp)
[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(
137 resp = self.post(
[all …]
H A Dtest_proxy.py179 assert resp['status'] == 200, 'status'
180 assert resp['body'] == payload, 'body'
200 resp = self._resp_to_dict(resp)
305 assert resp['status'] == 200, 'status'
370 resp = self.post_http10(
381 assert resp['status'] == 200, 'status'
382 assert resp['body'] == body, 'body'
384 resp = self.post_http10(
395 assert resp['status'] == 200, 'status'
396 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(
27 headers = resp['headers']
73 resp = self.get(url='/?')
81 resp = self.get()
258 resp = self.get()
346 (resp, sock) = self.post(
360 resp = self.post(
375 resp = self.get()
379 headers = resp['headers']
417 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_tls.py338 resp = self.get_ssl()
340 resp = None
505 (resp, sock) = self.post_ssl(
516 assert resp['body'] == '0123456789', 'keepalive 1'
518 resp = self.post_ssl(
528 assert resp['body'] == '0123456789', 'keepalive 2'
546 (resp, sock) = self.get_ssl(start=True)
562 (resp, sock) = self.get_ssl(
574 resp = self.get_ssl(
582 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_static.py115 resp = self.get(url='/index.html/')
116 assert resp['status'] == 404, 'index not found 2 status'
118 resp['headers']['Content-Type'] == 'text/html'
157 resp = self.get(url='/dir')
158 assert resp['status'] == 301, 'redirect status'
159 assert resp['headers']['Location'] == '/dir/', 'redirect Location'
160 assert 'Content-Type' not in resp['headers'], 'redirect Content-Type'
247 resp = self.head()
248 assert resp['status'] == 200, 'HEAD status'
249 assert resp['body'] == '', 'HEAD empty body'
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.c1128 resp.offset = -1; in nxt_controller_process_request()
1137 resp.offset = -1; in nxt_controller_process_request()
1146 resp.offset = -1; in nxt_controller_process_request()
1240 &resp.line, &resp.column); in nxt_controller_process_config()
1400 resp.offset = -1; in nxt_controller_process_config()
1409 resp.offset = -1; in nxt_controller_process_config()
1418 resp.offset = -1; in nxt_controller_process_config()
1427 resp.offset = -1; in nxt_controller_process_config()
1565 resp.offset = -1; in nxt_controller_process_cert()
2012 + (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 = ''
107 self.log_in(resp)
110 resp = self._resp_to_dict(resp)
114 resp['body'] = self._parse_chunked_body(resp['body']).decode(
119 resp = self._parse_json(resp)
123 return resp
125 return (resp, sock)
279 def _parse_json(self, resp): argument
280 headers = resp['headers']
285 resp['body'] = json.loads(resp['body'])
[all …]
/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 …]
/unit/test/unit/check/
H A Dchroot.py12 resp = http.put(
31 if 'success' in resp['body']:

123