MCPcopy Create free account
hub / github.com/ccxt/ccxt / is_text_response

Method is_text_response

python/ccxt/base/exchange.py:743–746  ·  view source on GitHub ↗
(self, headers)

Source from the content-addressed store, hash-verified

741 pass
742
743 def is_text_response(self, headers):
744 # https://github.com/ccxt/ccxt/issues/5302
745 content_type = headers.get('Content-Type', '')
746 return content_type.startswith('application/json') or content_type.startswith('text/')
747
748 @staticmethod
749 def key_exists(dictionary, key):

Callers 2

fetchMethod · 0.95
fetchMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected