Sha256: 4b65ffdb8f765ce5626083f2481872c583391b6ba8b6d6681018bb5977877608

Contents?: true

Size: 778 Bytes

Versions: 5

Compression:

Stored size: 778 Bytes

Contents

=begin
    Copyright 2010-2015 Tasos Laskos <tasos.laskos@arachni-scanner.com>

    This file is part of the Arachni Framework project and is subject to
    redistribution and commercial restrictions. Please see the Arachni Framework
    web site for more information on licensing and terms of use.
=end

module Ethon
class Easy
module Callbacks
    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
end
end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-1.3.2 lib/arachni/ethon/easy.rb
arachni-1.3.1 lib/arachni/ethon/easy.rb
arachni-1.3 lib/arachni/ethon/easy.rb
arachni-1.2.1 lib/arachni/ethon/easy.rb
arachni-1.2 lib/arachni/ethon/easy.rb