Skip to content

url

dandy.http.url

Url

Bases: BaseModel

host instance-attribute

port = 443 class-attribute instance-attribute

path_parameters = None class-attribute instance-attribute

query_parameters = None class-attribute instance-attribute

parsed_url property

path property

is_https property

path_parameters_to_str property

query_parameters_to_str property

__str__

Source code in dandy/http/url.py
def __str__(self) -> str:
    return self.to_str()

to_str

Source code in dandy/http/url.py
def to_str(self) -> str:
    return f'{self.parsed_url.scheme}://{self.parsed_url.netloc}:{self.port}{self.path}'