Skip to main content

body_text

Function body_text 

Source
pub fn body_text(body: Vec<u8>) -> String
Expand description

The body of a bounded read, as text.

Lossy, like reqwest’s own text(): a document that is not UTF-8 is already going to fail whatever parses it, and saying so there names the document rather than the encoding.