aboutsummaryrefslogtreecommitdiffstats
path: root/test/mitmproxy/data/addonscripts/configure.py
blob: 6f6ac06a7596dac79d43e35473f4bec7e2f313c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import typing

from mitmproxy import exceptions


class OptionAddon:
    def load(self, loader):
        loader.add_option(
            name = "optionaddon",
            typespec = typing.Optional[int],
            default = None,
            help = "Option Addon",
        )

    def configure(self, updates):
        raise exceptions.OptionsError("Options Error")

addons = [
    OptionAddon()
]