vendor/bundle/ruby/2.1.0/gems/httpauth-0.2.1/lib/httpauth/digest.rb
def to_header
        @h[:nonce] ||= Utils.create_nonce @h[:salt]
        @h[:opaque] ||= Utils.create_opaque
        @h[:algorithm] ||= HTTPAuth::PREFERRED_ALGORITHM
        @h[:qop] ||= [HTTPAuth::PREFERRED_QOP]
        Utils.encode_directives Utils.filter_h_on(@h,
                                                  [:realm, :domain, :nonce, :opaque, :stale, :algorithm, :qop]), :challenge
      end
# Encodes directives and returns a string that can be used as the WWW-Authenticate header
Encodes directives and returns a string that can be used as the WWW-Authenticate header
Encodes directives and returns a string that can be used as the WWW - Authenticate header
def to_header
        @h[:nonce] ||= Utils.create_nonce @h[:salt]
        @h[:opaque] ||= Utils.create_opaque
        @h[:algorithm] ||= HTTPAuth::PREFERRED_ALGORITHM
        @h[:qop] ||= [HTTPAuth::PREFERRED_QOP]
        Utils.encode_directives Utils.filter_h_on(@h,
                                                  [:realm, :domain, :nonce, :opaque, :stale, :algorithm, :qop]), :challenge
      end
def to_header @h [ :nonce ] ||= Utils . create_nonce @h [ :salt ] @h [ :opaque ] ||= Utils . create_opaque @h [ :algorithm ] ||= HTTPAuth :: PREFERRED_ALGORITHM @h [ :qop ] ||= [ HTTPAuth :: PREFERRED_QOP ] Utils . encode_directives Utils . filter_h_on ( @h , [ :realm , :domain , :nonce , :opaque , :stale , :algorithm , :qop ] ) , :challenge end
Encodes directives and returns a string that can be used as the WWW-Authenticate header
Encodes directives and returns a string that can be used as the WWW - Authenticate header