Skip to content
YosoiDocs

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.

@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

def as_str(self) -> str:

Return validated URL text without performing I/O.

Source: python/yosoi/search.py:53

def as_request_target(self) -> str:

Return URL text for a later request without sending one.

Source: python/yosoi/search.py:57