pagarmeapisdk/http/requests_client.py
def execute_as_binary(self, request, to_retry=None):
        """Execute a given HttpRequest to get a binary response back

        Args:
            request (HttpRequest): The given HttpRequest to execute.
            to_retry (boolean): whether to retry on a particular request

        Returns:
            HttpResponse: The response of the HttpRequest.

        """

        old_adapters = self.session.adapters
        self.force_retries(request, to_retry)
        response = self.session.request(
            HttpMethodEnum.to_string(request.http_method),
            request.query_url,
            headers=request.headers,
            params=request.query_parameters,
            data=request.parameters,
            files=request.files,
            timeout=self.timeout
        )
        self.session.adapters = old_adapters
        return self.convert_response(response, True, request)
Execute a given HttpRequest to get a binary response back

        Args:
            request (HttpRequest): The given HttpRequest to execute.
            to_retry (boolean): whether to retry on a particular request

        Returns:
            HttpResponse: The response of the HttpRequest.

        
Execute a given HttpRequest to get a binary response back
Execute a given HttpRequest to get a binary response back
def execute_as_binary(self, request, to_retry=None):
        old_adapters = self.session.adapters
        self.force_retries(request, to_retry)
        response = self.session.request(
            HttpMethodEnum.to_string(request.http_method),
            request.query_url,
            headers=request.headers,
            params=request.query_parameters,
            data=request.parameters,
            files=request.files,
            timeout=self.timeout
        )
        self.session.adapters = old_adapters
        return self.convert_response(response, True, request)
def execute_as_binary ( self , request , to_retry = None ) : old_adapters = self . session . adapters self . force_retries ( request , to_retry ) response = self . session . request ( HttpMethodEnum . to_string ( request . http_method ) , request . query_url , headers = request . headers , params = request . query_parameters , data = request . parameters , files = request . files , timeout = self . timeout ) self . session . adapters = old_adapters return self . convert_response ( response , True , request )
Execute a given HttpRequest to get a binary response back
Execute a given HttpRequest to get a binary response back
"""Execute a given HttpRequest to get a binary response back

        Args:
            request (HttpRequest): The given HttpRequest to execute.
            to_retry (boolean): whether to retry on a particular request

        Returns:
            HttpResponse: The response of the HttpRequest.

        """
The response of the HttpRequest.
The response of the HttpRequest .
HttpResponse
self
request
The given HttpRequest to execute.
The given HttpRequest to execute .
to_retry
whether to retry on a particular request
whether to retry on a particular request