(self)
| 120 | self.flows.append(flow) |
| 121 | |
| 122 | def done(self): |
| 123 | if ctx.options.hardump: |
| 124 | if ctx.options.hardump == "-": |
| 125 | har = self.make_har(self.flows) |
| 126 | print(json.dumps(har, indent=4)) |
| 127 | else: |
| 128 | self.export_har(self.flows, ctx.options.hardump) |
| 129 | |
| 130 | def flow_entry(self, flow: http.HTTPFlow, servers_seen: set[Server]) -> dict: |
| 131 | """Creates HAR entry from flow""" |