Response.text()
The text()
method of the Response
interface takes a Response
stream and reads it to completion.
It returns a promise that resolves with a String
.
The response is always decoded using UTF-8.
Syntax
Parameters
None.
Return value
A Promise that resolves with a String
.