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

Method inner

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

Consumes the `Response` and returns the inner `wreq::Response`.

(&self)

Source from the content-addressed store, hash-verified

42
43 /// Consumes the `Response` and returns the inner `wreq::Response`.
44 pub fn inner(&self) -> PyResult<wreq::Response> {
45 self.response
46 .swap(None)
47 .and_then(Arc::into_inner)
48 .ok_or_else(|| Error::Memory)
49 .map_err(Into::into)
50 }
51}
52
53#[pymethods]

Callers 11

textMethod · 0.80
text_with_charsetMethod · 0.80
jsonMethod · 0.80
bytesMethod · 0.80
closeMethod · 0.80
textMethod · 0.80
text_with_charsetMethod · 0.80
jsonMethod · 0.80
bytesMethod · 0.80
streamMethod · 0.80
closeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected