mokr.network.manager.firefox ============================ .. py:module:: mokr.network.manager.firefox Attributes ---------- .. autoapisummary:: mokr.network.manager.firefox.LOGGER Classes ------- .. autoapisummary:: mokr.network.manager.firefox.FirefoxNetworkManager Module Contents --------------- .. py:data:: LOGGER .. py:class:: FirefoxNetworkManager(page: mokr.browser.page.Page, client: mokr.connection.DevtoolsConnection, frame_manager: mokr.frame.FrameManager, interception_callback_chain: list[Callable]) Bases: :py:obj:`mokr.network.manager.base.NetworkManager` Class to handle requests in a given `mokr.browser.Page`. Note that functionality of this class is severely limited compared to it's Chrome counterpart, `mokr.network.ChromeNetworkManager`. Request interception does not block requests and can only be used to observe partial request and response data. The `interception_callback_chain` this class receives from the parent `mokr.browser.Page` is shared with spawned `mokr.network.Request` objects. While the request interception callback chain is run from the `Request` object, it is initiated during select events from this class. :param page: Parent `mokr.browser.Page`. :type page: Page :param client: A `mokr.connection.DevtoolsConnection` spawned by the parent `mokr.browser.Page`. :type client: DevtoolsConnection :param frame_manager: The `mokr.frame.FrameManager` from the `mokr.browser.Page` that spawned this element. :type frame_manager: FrameManager :param interception_callback_chain: A list of callbacks to be passed into new `mokr.network.Request`s that will be run during "request" event interception, by that object. Inherited from the parent `mokr.browser.Page`. :type interception_callback_chain: list[Callable] .. py:property:: extra_http_headers :type: dict[str, str] For parity; Firefox doesn't support sending extra headers via CDP. .. py:method:: set_request_interception(*args, **kwargs) -> None :async: Not supported by Firefox. :raises FirefoxNotImplementedError: When Firefox unsupported errors are on. .. py:method:: set_extra_http_headers(*args, **kwargs) -> None :async: Not supported by Firefox. :raises FirefoxNotImplementedError: When Firefox unsupported errors are on.