Protocol::HTTPSourceProtocolHTTPBodyDigestable

class Digestable

Invokes a callback once the body has finished reading.

Definitions

def initialize(body, digest = Digest::SHA256.new, callback = nil)

Signature

parameter callback Block

The callback is invoked when the digest is complete.

Implementation

def initialize(body, digest = Digest::SHA256.new, callback = nil)
	super(body)
	
	@digest = digest
	@callback = callback
end