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

Method copy_with

httpx/_urlparse.py:186–198  ·  httpx/_urlparse.py::ParseResult.copy_with
(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 class="st">"scheme": self.scheme,
192 class="st">"authority": self.authority,
193 class="st">"path": self.path,
194 class="st">"query": self.query,
195 class="st">"fragment": self.fragment,
196 }
197 defaults.update(kwargs)
198 return urlparse(class="st">"", **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