-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Milestone
Description
The ability to load interventions
Interventions shall be modules that contain a on_response and on_request method
module MyIntervention
def on_request transaction
# do request code here
end
def on _response transaction
# do response code here
end
end
These can be loaded when a proxy is created
Intervention.new_proxy "name", auto_start: true do |pr|
pr.listen_port = 2222
pr.host_port = 80
pr.host_address = 'newapi.int.brandwatch.com'
pr.load_interventions [MyIntervention]
end
Metadata
Metadata
Assignees
Labels
No labels