(self, updated)
| 96 | ) |
| 97 | |
| 98 | def configure(self, updated): |
| 99 | if "map_local" in updated: |
| 100 | self.replacements = [] |
| 101 | for option in ctx.options.map_local: |
| 102 | try: |
| 103 | spec = parse_map_local_spec(option) |
| 104 | except ValueError as e: |
| 105 | raise exceptions.OptionsError( |
| 106 | f"Cannot parse map_local option {option}: {e}" |
| 107 | ) from e |
| 108 | |
| 109 | self.replacements.append(spec) |
| 110 | |
| 111 | def request(self, flow: http.HTTPFlow) -> None: |
| 112 | if flow.response or flow.error or not flow.live: |
nothing calls this directly
no test coverage detected