MCPcopy
hub / github.com/tornadoweb/tornado / _oauth_escape

Function _oauth_escape

tornado/auth.py:1219–1222  ·  view source on GitHub ↗
(val: Union[str, bytes])

Source from the content-addressed store, hash-verified

1217
1218
1219def _oauth_escape(val: Union[str, bytes]) -> str:
1220 if isinstance(val, unicode_type):
1221 val = val.encode("utf-8")
1222 return urllib.parse.quote(val, safe="~")
1223
1224
1225def _oauth_parse_response(body: bytes) -> Dict[str, Any]:

Callers 2

_oauth_signatureFunction · 0.85
_oauth10a_signatureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected