Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
478
def
PERCENT(string: str) -> str:
479
return
""
.join([f
"%{byte:02X}"
for
byte in string.encode(
"utf-8"
)])
480
481
482
def
percent_encoded(string: str, safe: str) -> str:
Callers
1
percent_encoded
Function · 0.85
Calls
1
join
Method · 0.80
Tested by
no test coverage detected