def _send_request(self, enforce_json, method, raise_for_status,<EOL>url, **kwargs):
r = self.session.request(method, url, **kwargs)<EOL>if raise_for_status:<EOL><INDENT>r.raise_for_status()<EOL><DEDENT>if enforce_json:<EOL><INDENT>if '<STR_LIT:application/json>' in self.session.headers.get(<EOL>'<STR_LIT>', '<STR_LIT>'<EOL>):<EOL><INDENT>try:<EOL><INDENT>r.json()<EOL><DEDENT>except ValueError as e:<EOL><INDENT>raise PanCloudError(<EOL>"<STR_LIT>".format(e)<EOL>)<EOL><DEDENT><DEDENT><DEDENT>return r<EOL>
Send HTTP request.

        Args:
             enforce_json (bool): Require properly-formatted JSON or raise :exc:`~pancloud.exceptions.PanCloudError`. Defaults to ``False``.
             method (str): HTTP method.
             raise_for_status (bool): If ``True``, raises :exc:`~pancloud.exceptions.HTTPError` if status_code not in 2XX. Defaults to ``False``.
             url (str): Request URL.
             **kwargs (dict): Re-packed key-word arguments.

         Returns:
            requests.Response: Requests Response() object