Created
April 14, 2021 18:24
-
-
Save jeanqasaur/af5c5144d64f7c476b9a51047483675f 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
def open(self, *args, **kwargs): | |
start = datetime.now(timezone.utc) | |
resp: Response = super().open(*args, **kwargs) | |
self.har_writer.write_entry( | |
self._create_har_entry(start, args, kwargs, resp)) | |
return resp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment