MCPcopy Create free account
hub / github.com/s3tools/s3cmd / get_triplet

Method get_triplet

S3/S3.py:203–213  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

201 bucket_region, self.headers, self.body)
202
203 def get_triplet(self):
204 self.update_timestamp()
205 self.sign()
206
207 resource = dict(self.resource) ## take a copy
208
209 # URL Encode the uri for the http request
210 resource['uri'] = s3_quote(resource['uri'], quote_backslashes=False, unicode_output=True)
211 # Get the final uri by adding the uri parameters
212 resource['uri'] += format_param_str(self.params)
213 return (self.method_string, resource, self.headers)
214
215class S3(object):
216 http_methods = BidirMap(

Callers 3

send_requestMethod · 0.80
send_fileMethod · 0.80
recv_fileMethod · 0.80

Calls 4

update_timestampMethod · 0.95
signMethod · 0.95
s3_quoteFunction · 0.85
format_param_strFunction · 0.85

Tested by

no test coverage detected