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 initiate the handlers. :param headers: The extra header needed to be added to the Request. :type headers: dict, optional

Methods

__init__

This initiate the handlers.

get

Pass all the parameter to requests.get().

post

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 headers 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 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.