server Package

class browsermobproxy.Server(path='browsermob-proxy', options=None)[source]

Initialises a Server object

  • path (str) – Path to the browsermob proxy batch file
  • options (dict) – Dictionary that can hold the port. More items will be added in the future. This defaults to an empty dictionary

This will start the browsermob proxy and then wait until it can interact with it

Parameters:options (dict) – Dictionary that can hold the path and filename of the log file with resp. keys of log_path and log_file

This will stop the process running the proxy