module HTTPX::Plugins::DigestAuthentication

  1. lib/httpx/plugins/digest_authentication.rb

Methods

Public Class

  1. extra_options
  2. load_dependencies

Constants

DigestError = Class.new(Error)  

Public Class methods

extra_options (options)
[show source]
   # File lib/httpx/plugins/digest_authentication.rb
15 def self.extra_options(options)
16   Class.new(options.class) do
17     def_option(:digest) do |digest|
18       raise Error, ":digest must be a Digest" unless digest.is_a?(Digest)
19 
20       digest
21     end
22   end.new(options)
23 end
load_dependencies (*)
[show source]
   # File lib/httpx/plugins/digest_authentication.rb
25 def self.load_dependencies(*)
26   require "securerandom"
27   require "digest"
28 end