Top Level Namespace

Defined Under Namespace

Classes: MitmFlowArray, Mitmdump, MitmdumpReader

Instance Method Summary collapse

Instance Method Details

#load_proxies(glob) ⇒ Object



23
24
25
# File 'lib/rmitm.rb', line 23

def load_proxies(glob)
  Dir.glob(glob).each { |f| load f }
end

#mitmdump(name, &block) ⇒ Object



32
33
34
35
# File 'lib/rmitm.rb', line 32

def mitmdump(name, &block)
  $proxies ||= {}
  $proxies[name.to_sym] = Mitmdump.new(name, &block)
end

#proxy(name) ⇒ Object



27
28
29
30
# File 'lib/rmitm.rb', line 27

def proxy(name)
  $proxies[name.to_sym] or
    raise "Cannot find proxy '#{name}'"
end