method Body.text
Body.text(): Promise<string>

Takes a Response stream and reads it to completion. It returns a promise that resolves with a USVString (text).

Return Type

Promise<string>