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

Method get_header

webdav/client.py:80–94  ·  view source on GitHub ↗
(self, method)

Source from the content-addressed store, hash-verified

78 }
79
80 def get_header(self, method):
81
82 if method in Client.http_header:
83 try:
84 header = Client.http_header[method].copy()
85 except AttributeError:
86 header = Client.http_header[method][:]
87 else:
88 header = list()
89
90 if self.webdav.token:
91 webdav_token = "Authorization: OAuth {token}".format(token=self.webdav.token)
92 header.append(webdav_token)
93
94 return header
95
96 requests = {
97 'copy': "COPY",

Callers 15

listMethod · 0.95
freeMethod · 0.95
checkMethod · 0.95
mkdirMethod · 0.95
download_toMethod · 0.95
download_fileMethod · 0.95
upload_fromMethod · 0.95
upload_fileMethod · 0.95
headerMethod · 0.95
cleanMethod · 0.95
publishMethod · 0.95
unpublishMethod · 0.95

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected