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

Method close

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

Closes the response connection.

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

Source from the content-addressed store, hash-verified

201
202 /// Closes the response connection.
203 pub fn close<'py>(&'py self, py: Python<'py>) -> PyResult<Bound<'py, PyAny>> {
204 let res = self.inner();
205 future_into_py(py, async move {
206 let _ = res.map(drop);
207 Ok(())
208 })
209 }
210}
211
212#[pymethods]

Callers 1

__aexit__Method · 0.45

Calls 1

innerMethod · 0.80

Tested by

no test coverage detected