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

Method stream

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

Convert the response into a `Stream` of `Bytes` from the body.

(&self, py: Python)

Source from the content-addressed store, hash-verified

192
193 /// Convert the response into a `Stream` of `Bytes` from the body.
194 pub fn stream(&self, py: Python) -> PyResult<Streamer> {
195 py.allow_threads(|| {
196 self.inner()
197 .map(wreq::Response::bytes_stream)
198 .map(Streamer::new)
199 })
200 }
201
202 /// Closes the response connection.
203 pub fn close<'py>(&'py self, py: Python<'py>) -> PyResult<Bound<'py, PyAny>> {

Callers

nothing calls this directly

Calls 1

innerMethod · 0.80

Tested by

no test coverage detected