project_config.utils.http module

HTTP/s utilities.

project_config.utils.http.GET(url: str, use_cache: bool = True, **kwargs: Any) str[source]

Perform an HTTP/s GET request and return the result.

Parameters
  • url (str) – URL to which the request will be targeted.

  • use_cache (bool) – Specify if the cache must be used requesting the resource.

exception project_config.utils.http.ProjectConfigHTTPError(message: str)[source]

Bases: project_config.exceptions.ProjectConfigException

HTTP error.

message: str
exception project_config.utils.http.ProjectConfigTimeoutError(message: str)[source]

Bases: project_config.utils.http.ProjectConfigHTTPError

Timeout error.

message: str
project_config.utils.http._GET(url: str, timeout: Optional[float] = None, sleep: float = 1.0) str[source]