Skip to content

Instantly share code, notes, and snippets.

@jeanqasaur
Created April 14, 2021 18:20
Show Gist options
  • Save jeanqasaur/8a1e001d37bdd538bc8d41f02b1f9ed1 to your computer and use it in GitHub Desktop.
Save jeanqasaur/8a1e001d37bdd538bc8d41f02b1f9ed1 to your computer and use it in GitHub Desktop.
Code sample for Akita Flask blog post: HarClient class definition
class HarClient(FlaskClient):
def __init__(self, *args
, har_file_path=f'akita_trace_{time.time()}.har'
, **kwargs):
self.har_writer = HarWriter(har_file_path, 'w')
self.url_prefix = ""
super().__init__(*args, **kwargs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment