(self, updated)
| 43 | ) |
| 44 | |
| 45 | def configure(self, updated): |
| 46 | if "map_remote" in updated: |
| 47 | self.replacements = [] |
| 48 | for option in ctx.options.map_remote: |
| 49 | try: |
| 50 | spec = parse_map_remote_spec(option) |
| 51 | except ValueError as e: |
| 52 | raise exceptions.OptionsError( |
| 53 | f"Cannot parse map_remote option {option}: {e}" |
| 54 | ) from e |
| 55 | |
| 56 | self.replacements.append(spec) |
| 57 | |
| 58 | def request(self, flow: http.HTTPFlow) -> None: |
| 59 | if flow.response or flow.error or not flow.live: |
nothing calls this directly
no test coverage detected