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

Method _enforce_trailing_slash

httpx/_client.py:234–237  ·  view source on GitHub ↗
(self, url: URL)

Source from the content-addressed store, hash-verified

232 return self._trust_env
233
234 def _enforce_trailing_slash(self, url: URL) -> URL:
235 if url.raw_path.endswith(b"/"):
236 return url
237 return url.copy_with(raw_path=url.raw_path + b"/")
238
239 def _get_proxy_map(
240 self, proxy: ProxyTypes | None, allow_env_proxies: bool

Callers 2

__init__Method · 0.95
base_urlMethod · 0.95

Calls 1

copy_withMethod · 0.45

Tested by

no test coverage detected