MCPcopy Index your code
hub / github.com/encode/httpx / copy_with

Method copy_with

httpx/_urlparse.py:186–198  ·  view source on GitHub ↗
(self, **kwargs: str | None)

Source from the content-addressed store, hash-verified

184 )
185
186 def copy_with(self, **kwargs: str | None) -> ParseResult:
187 if not kwargs:
188 return self
189
190 defaults = {
191 "scheme": self.scheme,
192 "authority": self.authority,
193 "path": self.path,
194 "query": self.query,
195 "fragment": self.fragment,
196 }
197 defaults.update(kwargs)
198 return urlparse("", **defaults)
199
200 def __str__(self) -> str:
201 authority = self.authority

Callers

nothing calls this directly

Calls 2

urlparseFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected