Lines Matching refs:r
48 r = curl.http_get(url=url)
49 r.check_response(http_status=200)
50 assert r.json['server'] == env.domain1
57 r = curl.http_get(url=url)
58 r.check_response(http_status=200)
59 assert r.json['server'] == env.domain1
66 r = curl.http_get(url=url, extra_args=['--http2'])
67 r.check_response(http_status=200, protocol='HTTP/2')
68 assert r.json['server'] == env.domain1
75 r = curl.http_get(url=url, extra_args=['--http2'])
76 r.check_response(http_status=200, protocol='HTTP/1.1')
77 assert r.json['server'] == env.domain2
84 r = curl.http_get(url=url, extra_args=['--http3-only'])
85 r.check_response(http_status=200, protocol='HTTP/3')
86 assert r.json['server'] == env.domain1
96 r = curl.http_download(urls=[url], alpn_proto=proto, with_stats=True)
97 r.check_stats(http_status=200, count=1,
100 assert r.stats[0]['time_connect'] > 0, f'{r.stats[0]}'
101 assert r.stats[0]['time_appconnect'] > 0, f'{r.stats[0]}'
111 r = curl.http_download(urls=[url], with_stats=True, with_headers=True,
113 r.check_stats(http_status=200, count=1, exitcode=0,
117 assert r.responses[0]['header']['content-length'] == '30', f'{r.responses[0]}'
118 assert r.stats[0]['size_download'] == 0, f'{r.stats[0]}'
124 r = curl.http_get(url=url, extra_args=['--http2'])
125 r.check_exit_code(0)
126 assert len(r.responses) == 2, f'{r.responses}'
127 assert r.responses[0]['status'] == 101, f'{r.responses[0]}'
128 assert r.responses[1]['status'] == 200, f'{r.responses[1]}'
129 assert r.responses[1]['protocol'] == 'HTTP/2', f'{r.responses[1]}'
130 assert r.json['server'] == env.domain1
136 r = curl.http_get(url=url, extra_args=['--http2-prior-knowledge'])
137 r.check_exit_code(0)
138 assert len(r.responses) == 1, f'{r.responses}'
139 assert r.response['status'] == 200, f'{r.responsw}'
140 assert r.response['protocol'] == 'HTTP/2', f'{r.response}'
141 assert r.json['server'] == env.domain1