ServerUrl

Labs

class ServerUrl

Description

The base URL of a model server, with a scheme its host may be reached by.

https is accepted for every host; http only for a loopback host (localhost or a loopback IP literal). Construct with parse().

Inheritance:

Members defined in ServerUrl (2 members)

url

RW

parse

Check text and return it without a trailing slash.

Attributes

url: str = None

Methods

static parse(text: str) → syside.experimental.remote.ServerUrl

Check text and return it without a trailing slash.

Raises:

ValueError – If the URL has a user name or password (user:password@), the scheme is neither https nor http, the URL has no host, or the scheme is http and the host is not loopback.

Used by