sxcu.__client__.RequestClient¶
-
class
sxcu.__client__.RequestClient(headers: dict = None)¶ RequestClientis internally used to communicated withRequestsLibrary.-
__init__(headers: dict = None) → None¶ This initiate the handlers. :param headers: The extra header needed to be added to the Request. :type headers:
dict, optional
Methods
This initiate the handlers.
Pass all the parameter to
requests.get().Pass all the parameter to
requests.post().-
get(url: str, headers: Optional[dict] = None, **kwargs) → requests.models.Response¶ Pass all the parameter to
requests.get(). Also, adding the necessary headers. Also, the newly passed header would overide the default.- Parameters
headers – The header needed to be added to the Request.
important :: (.) – The
headerswould overide the default header.
-
post(url: str, headers: dict = None, **kwargs) → requests.models.Response¶ Pass all the parameter to
requests.post(). Also, adding the necessary headers. Also, the newly passed header would overide the default.- Parameters
headers (
str, optional) –The header needed to be added to the Request.
Important
The header would overide the default header.
-