Skip to main content
Body.text - Fetch - Web documentation
method Body.text
Private
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>