MCPcopy Create free account
hub / github.com/apify/impit / close

Method close

impit-python/src/response.rs:427–440  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

425 }
426
427 pub fn close(&mut self) -> PyResult<()> {
428 if self.is_closed {
429 return Ok(());
430 }
431
432 self.inner = None;
433 self.inner_state = match self.inner_state {
434 InnerResponseState::Streaming => InnerResponseState::StreamingClosed,
435 _ => self.inner_state,
436 };
437 self.is_closed = true;
438
439 Ok(())
440 }
441
442 #[getter]
443 fn content(&mut self, py: Python<'_>) -> PyResult<Vec<u8>> {

Callers 12

cookies.test.tsFile · 0.80
errors.test.tsFile · 0.80
basics.test.tsFile · 0.80
startFunction · 0.80
thread_serverFunction · 0.80
truncating_serverFunction · 0.80
_serveFunction · 0.80
run_proxy_serverFunction · 0.80
thread_serverFunction · 0.80
thread_serverFunction · 0.80
truncating_serverFunction · 0.80
close_async_implMethod · 0.80

Calls

no outgoing calls

Tested by 7

startFunction · 0.64
thread_serverFunction · 0.64
truncating_serverFunction · 0.64
_serveFunction · 0.64
thread_serverFunction · 0.64
thread_serverFunction · 0.64
truncating_serverFunction · 0.64