class Playwright::HarRouter

def self.create(local_utils, file, not_found_action, url_match: nil)

Parameters:
  • url_match (String||Regexp|nil) --
  • not_found_action (String) -- 'abort' or 'fallback'
  • file (String) --
  • local_utils (LocalUtils) --
def self.create(local_utils, file, not_found_action, url_match: nil)
  har_id = local_utils.har_open(file)
  new(
    local_utils: local_utils,
    har_id: har_id,
    not_found_action: not_found_action,
    url_match: url_match,
  )
end