sxcu.__client__.RequestClient

class sxcu.__client__.RequestClient(headers: dict = None)

RequestClient is internally used to communicated with Requests Library.

__init__(headers: dict = None)None

This initaite the handlers. :param headers: The extra header needed to be added to the Request. :type headers: dict, optional

Methods

__init__

This initaite the handlers.

get

Pass all the parameter to requests.get().

post

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.