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

Method upload

test/pyhttpd/nghttp.py:262–266  ·  view source on GitHub ↗
(self, url, fpath, timeout=5, options=None)

Source from the content-addressed store, hash-verified

260 return self._raw(url, timeout, options)
261
262 def upload(self, url, fpath, timeout=5, options=None):
263 if not options:
264 options = []
265 options.extend(["--data=%s" % fpath])
266 return self._raw(url, timeout, options)
267
268 def upload_file(self, url, fpath, timeout=5, options=None):
269 fname = os.path.basename(fpath)

Callers 5

test_h2_202_01Method · 0.80
test_h2_202_02Method · 0.80
test_h2_400_20Method · 0.80

Calls 1

_rawMethod · 0.95

Tested by 5

test_h2_202_01Method · 0.64
test_h2_202_02Method · 0.64
test_h2_400_20Method · 0.64