MCPcopy Create free account
hub / github.com/apache/httpd / curl_raw

Method curl_raw

test/pyhttpd/env.py:827–846  ·  view source on GitHub ↗
(self, urls, timeout=10, options=None, insecure=False,
                 force_resolve=True, no_stdout_list=False)

Source from the content-addressed store, hash-verified

825 return r
826
827 def curl_raw(self, urls, timeout=10, options=None, insecure=False,
828 force_resolve=True, no_stdout_list=False):
829 if not isinstance(urls, list):
830 urls = [urls]
831 stdout_list = False
832 if len(urls) > 1 and not no_stdout_list:
833 stdout_list = True
834 args, headerfile = self.curl_complete_args(
835 urls=urls, stdout_list=stdout_list,
836 timeout=timeout, options=options, insecure=insecure,
837 force_resolve=force_resolve)
838 args += urls
839 r = self.run(args, stdout_list=stdout_list)
840 if r.exit_code == 0:
841 self.curl_parse_headerfile(headerfile, r=r)
842 if r.json:
843 r.response["json"] = r.json
844 if os.path.isfile(headerfile):
845 os.remove(headerfile)
846 return r
847
848 def curl_get(self, url, insecure=False, options=None):
849 return self.curl_raw([url], insecure=insecure, options=options)

Callers 8

curl_getMethod · 0.95
curl_uploadMethod · 0.95
curl_post_dataMethod · 0.95
curl_post_valueMethod · 0.95
curl_protocol_versionMethod · 0.95
get_new_eabFunction · 0.80
test_h2_600_04Method · 0.80
test_h2_600_05Method · 0.80

Calls 3

curl_complete_argsMethod · 0.95
runMethod · 0.95
curl_parse_headerfileMethod · 0.95

Tested by 3

get_new_eabFunction · 0.64
test_h2_600_04Method · 0.64
test_h2_600_05Method · 0.64