Skip to main content

get_url_prefix

No overview available.

def get_url_prefix(
py: Python< '_ >,
include_url: bool
) - > string

Constructs the base URL prefix for API requests by combining the protocol, host, and port. This is used to ensure consistent endpoint addressing across different environment configurations.

Returns

TypeDescription
stringThe fully qualified URL prefix, including protocol and port if applicable, used as the base for all API calls.