MCPcopy Create free account
hub / github.com/CloudPolis/webdav-client-python / add_options

Function add_options

webdav/client.py:33–43  ·  view source on GitHub ↗
(request, options)

Source from the content-addressed store, hash-verified

31
32
33def add_options(request, options):
34
35 for (key, value) in options.items():
36 if value is None:
37 continue
38 try:
39 request.setopt(pycurl.__dict__[key], value)
40 except TypeError:
41 raise OptionNotValid(key, value)
42 except pycurl.error:
43 raise OptionNotValid(key, value)
44
45
46def get_options(type, from_options):

Callers 1

RequestMethod · 0.85

Calls 1

OptionNotValidClass · 0.85

Tested by

no test coverage detected