genvid.toolbox.BaseHttpApiTool¶
-
class
genvid.toolbox.
BaseHttpApiTool
(**kwargs)¶ Bases:
genvid.toolbox.basetool.BaseTool
This class is the basic class for HTTP API
-
get_base_url
(timeout=0.0) → str¶ Return the base url for this service api.
-
request_delete
(path: str, timeout=0.0, params: dict = None, data: str = None, json_data=None)¶ Run a DELETE HTTP request over the cluster service. :param path: The http request path :param timeout: The request timeout :param params: Parameters used for the query string :param json_data: A dictionary that will be transform into json :param data: The text data
-
request_get
(path: str, timeout=0.0, params: dict = None)¶ Run a GET HTTP request over the cluster service. :param path: The http request path :param timeout: The request timeout :param params: Parameters used for the query string
-
request_post
(path: str, timeout=0.0, params: dict = None, data: str = None, json_data=None)¶ Run a POST HTTP request over the cluster service. :param path: The http request path :param timeout: The request timeout :param params: Parameters used for the query string :param json_data: A dictionary that will be transform into json :param data: The text data
-
-
class
httpapi.
BaseHttpApiTool
¶ Implementation of
genvid.toolbox.BaseHttpApiTool