#
# Secrets responder test client
#
# Copyright (c) 2016 Red Hat, Inc.
#
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 only
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import socket
import requests
# proxies, silently ignored
return HTTPUnixConnectionPool(path)
if sock_path is None:
'/' + \
self._last_response = None
if resource is not None:
return path
if headers is None:
return headers
self._last_response = None
return self._last_response
return self._last_response
return simple
if ktype != "simple":
return simple["value"]