當前位置: 首頁>>代碼示例>>Python>>正文


Python parsers.ResponseParserFactory方法代碼示例

本文整理匯總了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 
開發者ID:skarlekar,項目名稱:faces,代碼行數:22,代碼來源:endpoint.py

示例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() 
開發者ID:QData,項目名稱:deepWordBug,代碼行數:14,代碼來源:endpoint.py


注:本文中的botocore.parsers.ResponseParserFactory方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。