MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / _format_url

Method _format_url

src/core/service/email/view_service.py:116–120  ·  view source on GitHub ↗
(path: str, query_params: dict[str, Any] | None = None, base_url: str = "")

Source from the content-addressed store, hash-verified

114
115 @staticmethod
116 def _format_url(path: str, query_params: dict[str, Any] | None = None, base_url: str = "") -> str:
117 url = urljoin(base_url, path)
118 if query_params:
119 return f"{url}?{urlencode(query_params)}"
120 return url

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected