Add whitelist feature #303
Allow a whitelist of addresses to access the network.
Pass a list of tuples (host, port) as whitelist argument.
whitelist = [
('localhost', 1234),
('127.0.0.1', 8080),
]
httpretty.enable(allow_net_connect=False, whitelist=whitelist)
# ...
@gabrielfalcao, can we merge this one?
@gabrielfalcao? :) i see you liked the commend above, but can we merge it? 😅
@gabrielfalcao Can this be merged now? would really help me if this would be available.
Waiting for this to be merged, you can directly use my fork with pip or poetry.
Waiting for this to be merged, you can directly use my fork with pip or poetry.
@dapicester, which fork are you talking about?
https://github.com/dapicester/HTTPretty is 3 commits behind httpretty original source and does not have whitelisting functionality merged 🤔
@leikoilja you should use the feature/whitelist branch, not main.