Module: Ethon::Easy::Callbacks

Defined in:
lib/arachni/ethon/easy.rb

Instance Method Summary collapse

Instance Method Details

#debug_callbackObject



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/arachni/ethon/easy.rb', line 12

def debug_callback
    @debug_callback ||= proc do |handle, type, data, size, udata|
        # We only care about these so that we can have access to raw
        # HTTP request traffic for reporting/debugging purposes.
        next if type != :header_out && type != :data_out

        message = data.read_string( size )
        @debug_info.add type, message
        0
    end
end