ConnectionSession

class aswan.ConnectionSession(depot_path: ~pathlib.Path | None = None, is_browser=False, headless=True, eager=False, proxy_cls: type[~aswan.security.ProxyBase] = <class 'aswan.security.NoProxy'>, is_webext: bool = False)

Bases: ActorBase

Methods Summary

consume(task)

get_parsed_response(url[, handler, params])

proc_result(task, out, status)

stop()

if any cleanup needed

Methods Documentation

consume(task: HandlingTask)
get_parsed_response(url, handler=<aswan.url_handler.RequestSoupHandler object>, params: dict | None = None)
proc_result(task: HandlingTask, out: Any, status: str)
stop()

if any cleanup needed