pex.proto.http.tools
¶
Module Contents¶
- class pex.proto.http.tools.HTTPTools¶
Bases:
object
Subclass of pex.proto.http module.
This subclass of pex.proto.http module is intended for providing some HTTP tools.
- static normalize_url(host: str, port: int, path: str, ssl: bool = False) str ¶
Normalize URL.
- Parameters:
host (str) – HTTP host
port (int) – HTTP port
path (str) – HTTP path
ssl (bool) – True if HTTP uses SSL else False
- Return str:
normalized URL