File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/libcloud/utils/__pycache__/connection.cpython-310.pyc
Back
o ;j? � @ s0 d dl mZmZ d dlmZ dgZddd�ZdS )� )�parse_qs�urlparse)� Connection�get_response_object�GETNc C sV t � | �}t|j�}|jdk}|pi }|�� }t||jd�}|j|j||||d�}|S )a� Utility function which uses libcloud's connection class to issue an HTTP request. :param url: URL to send the request to. :type url: ``str`` :param method: HTTP method. :type method: ``str`` :param headers: Optional request headers. :type headers: ``dict`` :param retry_failed: True to retry failed requests. :return: Response object. :rtype: :class:`Response`. �https)�secure�host)�action�params�headers�method�retry_failed) r r �query�scheme�upperr �netloc�request�path) �urlr r r Z parsed_urlZ parsed_qsr Zcon�response� r �M/opt/saltstack/salt/lib/python3.10/site-packages/libcloud/utils/connection.pyr s �)r NN)Zlibcloud.utils.py3r r Zlibcloud.common.baser �__all__r r r r r �<module> s
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings