_extract_scheme_and_domain() — langchain Function Reference
Architecture documentation for the _extract_scheme_and_domain() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 186d5b55_0a55_5297_b56d_913961e32304["_extract_scheme_and_domain()"] abf79bd8_0d60_378a_f86d_85282499aced["base.py"] 186d5b55_0a55_5297_b56d_913961e32304 -->|defined in| abf79bd8_0d60_378a_f86d_85282499aced 357f19d8_3422_6a9d_533d_c62f93023ce8["_check_in_allowed_domain()"] 357f19d8_3422_6a9d_533d_c62f93023ce8 -->|calls| 186d5b55_0a55_5297_b56d_913961e32304 style 186d5b55_0a55_5297_b56d_913961e32304 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/chains/api/base.py lines 24–34
def _extract_scheme_and_domain(url: str) -> tuple[str, str]:
"""Extract the scheme + domain from a given URL.
Args:
url: The input URL.
Returns:
A 2-tuple of scheme and domain
"""
parsed_uri = urlparse(url)
return parsed_uri.scheme, parsed_uri.netloc
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _extract_scheme_and_domain() do?
_extract_scheme_and_domain() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/chains/api/base.py.
Where is _extract_scheme_and_domain() defined?
_extract_scheme_and_domain() is defined in libs/langchain/langchain_classic/chains/api/base.py at line 24.
What calls _extract_scheme_and_domain()?
_extract_scheme_and_domain() is called by 1 function(s): _check_in_allowed_domain.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free