def get(self, uri, disable_proxy=False, stream=False):
        """Return Requests response to GET request."""
        response = requests.get(
            uri,
            headers=self.headers,
            allow_redirects=True,
            cookies={},
            stream=stream,
            proxies=self.proxy if not disable_proxy else False
        )

        if response.status_code in _PERMITTED_STATUS_CODES:
            self.response_headers = response.headers
            return response.content if not stream else response.iter_content()
        else:
            raise requests.exceptions.HTTPError(
                "HTTP response did not have a permitted status code."
            )
def get ( self , uri , disable_proxy = False , stream = False ) : response = requests . get ( uri , headers = self . headers , allow_redirects = True , cookies = { } , stream = stream , proxies = self . proxy if not disable_proxy else False ) if response . status_code in _PERMITTED_STATUS_CODES : self . response_headers = response . headers return response . content if not stream else response . iter_content ( ) else : raise requests . exceptions . HTTPError ( "HTTP response did not have a permitted status code." )
Return Requests response to GET request.