SearchResultUrl
yosoi.search.SearchResultUrl
class SearchResultUrl(str):
An absolute HTTP(S) destination validated by Rust; no I/O occurs.
Source: python/yosoi/search.py:23
Members below are declared on this class. Inherited Pydantic methods and generated constructor signatures are not expanded.
Methods
Section titled “Methods”@classmethod
def parse(cls, value: str) -> SearchResultUrl:
Validate an absolute HTTP(S) destination without fetching it.
Args: value: URL text without embedded credentials.
Returns: A validated string value; validation does not establish destination trust.
Raises: SearchError: The URL is invalid, uses an unsupported scheme, or embeds credentials.
Source: python/yosoi/search.py:27
as_str
Section titled “as_str”def as_str(self) -> str:
Return validated URL text without performing I/O.
Source: python/yosoi/search.py:53
as_request_target
Section titled “as_request_target”def as_request_target(self) -> str:
Return URL text for a later request without sending one.