Skip to main content

scheme_is_special

No overview available.

def scheme_is_special(
scheme: string
) - > boolean

Determines if a given URL scheme is considered "special" according to the WHATWG URL Standard.

Parameters

NameTypeDescription
schemestringThe URL protocol scheme to be validated against the list of special schemes.

Returns

TypeDescription
booleanTrue if the scheme is one of the special protocols (ftp, file, http, https, ws, wss), False otherwise.