sxcu.__client__.RequestClient¶
-
class
sxcu.__client__.
RequestClient
(headers: dict = None)¶ RequestClient
is internally used to communicated withRequests
Library.-
__init__
(headers: dict = None) → None¶ This initaite the handlers. :param headers: The extra header needed to be added to the Request. :type headers:
str
, optional
Methods
This initaite the handlers.
Pass all the parameter to
requests.get()
.Pass all the parameter to
requests.post()
.-
get
(url: str, headers: dict = None, **kwargs) → requests.models.Response¶ Pass all the parameter to
requests.get()
. Also, adding the neccessary headers. Also, the newly passed header would overide the default. :param headers: The header needed to be added to the Request.Important
The header would overide the default header.
-
post
(url: str, headers: dict = None, **kwargs) → requests.models.Response¶ Pass all the parameter to
requests.post()
. Also, adding the neccessary headers. Also, the newly passed header would overide the default. :param headers: The header needed to be added to the Request.Important
The header would overide the default header.
-