text( )


Reads the response body as a string.

The text() function reads the body response stream to its completion and formats the data as a string. It returns a Promise that resolves to the response body as a string.

Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<string>
Did this help?