MCPcopy Create free account
hub / github.com/0x676e67/wreq-python / text

Method text

src/client/async_impl/response/http.rs:144–152  ·  view source on GitHub ↗

Returns the text content of the response.

(&self, py: Python<'py>)

Source from the content-addressed store, hash-verified

142
143 /// Returns the text content of the response.
144 pub fn text<'py>(&self, py: Python<'py>) -> PyResult<Bound<'py, PyAny>> {
145 let resp = self.inner()?;
146 future_into_py(py, async move {
147 resp.text()
148 .await
149 .map_err(Error::Request)
150 .map_err(Into::into)
151 })
152 }
153
154 /// Returns the text content of the response with a specific charset.
155 pub fn text_with_charset<'py>(

Callers

nothing calls this directly

Calls 1

innerMethod · 0.80

Tested by

no test coverage detected