MCPcopy
hub / github.com/encode/httpx / PERCENT

Function PERCENT

httpx/_urlparse.py:478–479  ·  view source on GitHub ↗
(string: str)

Source from the content-addressed store, hash-verified

476
477
478def PERCENT(string: str) -> str:
479 return "".join([f"%{byte:02X}" for byte in string.encode("utf-8")])
480
481
482def percent_encoded(string: str, safe: str) -> str:

Callers 1

percent_encodedFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected