Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/microsoft/playwright-python
/ text
Method
text
playwright/_impl/_network.py:927–929 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
925
return
base64.b64decode(binary)
926
927
async
def
text(self) -> str:
928
content = await self.body()
929
return
content.decode()
930
931
async
def
json(self) -> Any:
932
return
json.loads(await self.text())
Callers
15
json
Method · 0.95
to_be_ok
Method · 0.45
test_should_work
Function · 0.45
test_should_return_empty_body
Function · 0.45
test_should_serialize_request_data
Function · 0.45
test_should_retry_ECONNRESET
Function · 0.45
test_get_should_work
Function · 0.45
test_fetch_should_work
Function · 0.45
test_should_retry_ECONNRESET
Function · 0.45
test_request_fulfill
Function · 0.45
test_page_events_request_should_report_requests_and_responses_handled_by_service_worker
Function · 0.45
test_response_text_should_work
Function · 0.45
Calls
1
body
Method · 0.95
Tested by
15
test_should_work
Function · 0.36
test_should_return_empty_body
Function · 0.36
test_should_serialize_request_data
Function · 0.36
test_should_retry_ECONNRESET
Function · 0.36
test_get_should_work
Function · 0.36
test_fetch_should_work
Function · 0.36
test_should_retry_ECONNRESET
Function · 0.36
test_request_fulfill
Function · 0.36
test_page_events_request_should_report_requests_and_responses_handled_by_service_worker
Function · 0.36
test_response_text_should_work
Function · 0.36
test_response_text_should_return_uncompressed_text
Function · 0.36
test_response_text_should_throw_when_requesting_body_of_redirected_response
Function · 0.36