Module Contents


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.

  • 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