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

Method username

httpx/_urls.py:151–157  ·  view source on GitHub ↗

The URL username as a string, with URL decoding applied. For example: "jo@email.com"

(self)

Source from the content-addressed store, hash-verified

149
150 @property
151 def username(self) -> str:
152 """
153 The URL username as a string, with URL decoding applied.
154 For example: "jo@email.com"
155 """
156 userinfo = self._uri_reference.userinfo
157 return unquote(userinfo.partition(":")[0])
158
159 @property
160 def password(self) -> str:

Callers

nothing calls this directly

Calls 1

unquoteFunction · 0.85

Tested by

no test coverage detected