MCPcopy Create free account
hub / github.com/antirez/freakwan / urlencode

Method urlencode

telegram.py:215–216  ·  view source on GitHub ↗
(self,fields)

Source from the content-addressed store, hash-verified

213 # of the hash is assumed to be already url encoded or just a plain
214 # string without special chars).
215 def urlencode(self,fields):
216 return "&".join([str(key)+"="+self.quote(value) for key,value in fields.items()])
217
218 # Create a POST request with url-encoded parameters in the body.
219 # Parameters are passed as a hash in 'fields'.

Callers 1

build_post_requestMethod · 0.95

Calls 1

quoteMethod · 0.95

Tested by

no test coverage detected