Skip to content

Instantly share code, notes, and snippets.

@jeanqasaur
Created April 14, 2021 18:24
Show Gist options
  • Save jeanqasaur/af5c5144d64f7c476b9a51047483675f to your computer and use it in GitHub Desktop.
Save jeanqasaur/af5c5144d64f7c476b9a51047483675f to your computer and use it in GitHub Desktop.
Code sample for Akita Flask blog post: HarClient class definition
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