Skip to content

Interventions #2

@benSlaughter

Description

@benSlaughter

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
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions