MCPcopy Create free account
hub / github.com/csev/py4e / to_postdata

Method to_postdata

code/oauth.py:172–175  ·  view source on GitHub ↗

Serialize as post data for a POST request.

(self)

Source from the content-addressed store, hash-verified

170 return {'Authorization': auth_header}
171
172 def to_postdata(self):
173 """Serialize as post data for a POST request."""
174 return '&'.join(['%s=%s' % (escape(str(k)), escape(str(v))) \
175 for k, v in self.parameters.iteritems()])
176
177 def to_url(self):
178 """Serialize as a URL for a GET request."""

Callers 1

to_urlMethod · 0.95

Calls 1

escapeFunction · 0.70

Tested by

no test coverage detected