本文整理匯總了Python中botocore.parsers.ResponseParserFactory方法的典型用法代碼示例。如果您正苦於以下問題:Python parsers.ResponseParserFactory方法的具體用法?Python parsers.ResponseParserFactory怎麽用?Python parsers.ResponseParserFactory使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類botocore.parsers
的用法示例。
在下文中一共展示了parsers.ResponseParserFactory方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: __init__
# 需要導入模塊: from botocore import parsers [as 別名]
# 或者: from botocore.parsers import ResponseParserFactory [as 別名]
def __init__(self, host, endpoint_prefix,
event_emitter, proxies=None, verify=True,
timeout=DEFAULT_TIMEOUT, response_parser_factory=None,
max_pool_connections=MAX_POOL_CONNECTIONS):
self._endpoint_prefix = endpoint_prefix
self._event_emitter = event_emitter
self.host = host
self.verify = verify
if proxies is None:
proxies = {}
self.proxies = proxies
self.http_session = BotocoreHTTPSession(
max_pool_connections=max_pool_connections)
self.timeout = timeout
self.max_pool_connections = max_pool_connections
logger.debug('Setting %s timeout as %s', endpoint_prefix, self.timeout)
self._lock = threading.Lock()
if response_parser_factory is None:
response_parser_factory = parsers.ResponseParserFactory()
self._response_parser_factory = response_parser_factory
示例2: __init__
# 需要導入模塊: from botocore import parsers [as 別名]
# 或者: from botocore.parsers import ResponseParserFactory [as 別名]
def __init__(self, host, endpoint_prefix, event_emitter,
response_parser_factory=None, http_session=None):
self._endpoint_prefix = endpoint_prefix
self._event_emitter = event_emitter
self.host = host
self._lock = threading.Lock()
if response_parser_factory is None:
response_parser_factory = parsers.ResponseParserFactory()
self._response_parser_factory = response_parser_factory
self.http_session = http_session
if self.http_session is None:
self.http_session = URLLib3Session()