MCPcopy Create free account
hub / github.com/psf/requests-html / request

Method request

requests_html.py:756–759  ·  view source on GitHub ↗

Partial original request func and run it in a thread.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

754 self.thread_pool = ThreadPoolExecutor(max_workers=workers)
755
756 def request(self, *args, **kwargs):
757 """ Partial original request func and run it in a thread. """
758 func = partial(super().request, *args, **kwargs)
759 return self.loop.run_in_executor(self.thread_pool, func)
760
761 async def close(self):
762 """ If a browser was created close it first. """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected