Functions§
- determine_
parent - Determines the parent domain if this is a subdomain.
- extract_
root_ domain - Extracts the root domain from a full host (e.g., “admin.example.com” → “example.com”).
- is_
localhost - Quick check whether this request originates from localhost.
- split_
host - Returns (root_domain, subdomain) where subdomain is None if host == root.