MCPcopy Create free account
hub / github.com/boy-hack/hack-requests / text

Method text

HackRequests/HackRequests.py:398–410  ·  view source on GitHub ↗

:return: text

(self)

Source from the content-addressed store, hash-verified

396 return body
397
398 def text(self):
399 '''
400
401 :return: text
402 '''
403 body = self.content()
404
405 try:
406 text = body.decode(self.charset, 'ignore')
407 except:
408 text = str(body)
409 self.log["response"] += '\r\n' + text[:4096]
410 return text
411
412 def _cookie_update(self, old, new):
413 '''

Callers 11

test_real_ipMethod · 0.80
test_getMethod · 0.80
test_postMethod · 0.80
test_jsonMethod · 0.80
test_localhostMethod · 0.80
test_getMethod · 0.80
test_postMethod · 0.80
test_jsonMethod · 0.80
test_chunkedMethod · 0.80
_callbackFunction · 0.80

Calls 1

contentMethod · 0.95

Tested by 10

test_real_ipMethod · 0.64
test_getMethod · 0.64
test_postMethod · 0.64
test_jsonMethod · 0.64
test_localhostMethod · 0.64
test_getMethod · 0.64
test_postMethod · 0.64
test_jsonMethod · 0.64
test_chunkedMethod · 0.64
_callbackFunction · 0.64