Skip to content
YosoiDocs

new

yosoi.request.new

def new(target: str | WebTarget) -> PageRequest:

Author a page acquisition without URL validation or network I/O.

Args: target: Original string or WebTarget to validate during preparation.

Returns: A request with a fresh identity, using defaults until explicitly bound.

Raises: pydantic.ValidationError: The supplied target cannot form the authoring model.

Source: python/yosoi/request.py:516