Created
April 14, 2021 18:20
-
-
Save jeanqasaur/8a1e001d37bdd538bc8d41f02b1f9ed1 to your computer and use it in GitHub Desktop.
Code sample for Akita Flask blog post: HarClient class definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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