Protocol::HTTPSourceProtocolHTTPHeaderDigestEntry

class Entry

A single digest entry in the Digest header.

Definitions

def initialize(algorithm, value)

Create a new digest entry.

Signature

parameter algorithm String

the digest algorithm (e.g., "sha-256", "md5").

parameter value String

the base64-encoded or hex-encoded digest value.

Implementation

def initialize(algorithm, value)
	super(algorithm.downcase, value)
end

def to_s

Convert the entry to its string representation.

Signature

returns String

the formatted digest string.

Implementation

def to_s
	"#{algorithm}=#{value}"
end